diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-10 20:11:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-10 20:11:50 -0400 |
commit | 97d2116708ca0fd6ad8b00811ee4349b7e19e96f (patch) | |
tree | 81f73fc1a6daee60737b591cf1be73cc4f79de37 /fs/inode.c | |
parent | 30066ce675d3af350bc5a53858991c0b518dda00 (diff) | |
parent | fd50ecaddf8372a1d96e0daeaac0f93cf04e4d42 (diff) |
Merge branch 'work.xattr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs xattr updates from Al Viro:
"xattr stuff from Andreas
This completes the switch to xattr_handler ->get()/->set() from
->getxattr/->setxattr/->removexattr"
* 'work.xattr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
vfs: Remove {get,set,remove}xattr inode operations
xattr: Stop calling {get,set,remove}xattr inode operations
vfs: Check for the IOP_XATTR flag in listxattr
xattr: Add __vfs_{get,set,remove}xattr helpers
libfs: Use IOP_XATTR flag for empty directory handling
vfs: Use IOP_XATTR flag for bad-inode handling
vfs: Add IOP_XATTR inode operations flag
vfs: Move xattr_resolve_name to the front of fs/xattr.c
ecryptfs: Switch to generic xattr handlers
sockfs: Get rid of getxattr iop
sockfs: getxattr: Fail with -EOPNOTSUPP for invalid attribute names
kernfs: Switch to generic xattr handlers
hfs: Switch to generic xattr handlers
jffs2: Remove jffs2_{get,set,remove}xattr macros
xattr: Remove unnecessary NULL attribute name check
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/inode.c b/fs/inode.c index a3c7ba7f6b59..7d037591259d 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -140,6 +140,8 @@ int inode_init_always(struct super_block *sb, struct inode *inode) | |||
140 | inode->i_fop = &no_open_fops; | 140 | inode->i_fop = &no_open_fops; |
141 | inode->__i_nlink = 1; | 141 | inode->__i_nlink = 1; |
142 | inode->i_opflags = 0; | 142 | inode->i_opflags = 0; |
143 | if (sb->s_xattr) | ||
144 | inode->i_opflags |= IOP_XATTR; | ||
143 | i_uid_write(inode, 0); | 145 | i_uid_write(inode, 0); |
144 | i_gid_write(inode, 0); | 146 | i_gid_write(inode, 0); |
145 | atomic_set(&inode->i_writecount, 0); | 147 | atomic_set(&inode->i_writecount, 0); |