Unionfs: fix unionfs_setattr to handle ATTR_KILL_S*ID
authorJeff Layton <jlayton@redhat.com>
Fri, 19 Oct 2007 04:44:00 +0000 (00:44 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 29 Apr 2011 02:25:08 +0000 (22:25 -0400)
commit27d28deacf0677ca3771632f3a5e3e9662a311ef
tree08d0e7e3663a6ea15aaeba2a856d809b3c33b07c
parent636d1b27805bb5ddf73bcebe74399ed54e8ca9ee
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