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, 6 Aug 2010 03:01:05 +0000 (23:01 -0400)
commit8412f4a591ac2e2aff4bcd2d5b8b581308e53c5b
treeffc75b02dbf49d469a79cdbb49b645ca88da347c
parent903854022d3df6068b0bdac081c04550c7288f23
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