Unionfs: fix unionfs_setattr to handle ATTR_KILL_S*ID
authorJeff Layton <jlayton@redhat.com>
Fri, 16 Nov 2007 18:45:29 +0000 (13:45 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:15 +0000 (19:03 -0400)
commitec2dfa888aa64b81702bc2b5e8abb8c4d3ab9e09
tree016ff35cd1bd0f78dbaaf0571931d0132e12f735
parentb96ba601990f90a1c2affe1fc7b8827542a2c7d6
Unionfs: fix unionfs_setattr to handle ATTR_KILL_S*ID

Don't allow unionfs_setattr to trip the BUG() in notify_change. Clear
ATTR_MODE if the either ATTR_KILL_S*ID is set. This also allows the
lower filesystem to interpret these bits in its own way.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c