vfs: Pass setxattr(2) flags properly
authorJan Kara <jack@suse.cz>
Wed, 20 Apr 2011 18:30:40 +0000 (20:30 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Apr 2011 14:34:44 +0000 (07:34 -0700)
commitdf7e130384efd1c732aa08648dad46687fee3d96
tree7dd8f9f0fe4cdcb27242a33783440bae5690e47e
parent584f79046780e10cb24367a691f8c28398a00e84
vfs: Pass setxattr(2) flags properly

For some reason generic_setxattr() did not pass flags (XATTR_CREATE,
XATTR_REPLACE) to the filesystem specific helper. This caused that
setxattr(2) syscall just ignored these flags.

Fix the bug by passing flags correctly.

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/xattr.c