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, 20 Jun 2014 00:40:56 +0000 (20:40 -0400)
commit55c9b40f05ae5e8b4201257c1d978ce4aadb120d
tree6c3180a4b97f3033aecf79d7ae7addf0575d6a0b
parent7aa158e5c7e870a8879b51dde8e04c1adf7c4f90
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