aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-10 20:11:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-10 20:11:50 -0400
commit97d2116708ca0fd6ad8b00811ee4349b7e19e96f (patch)
tree81f73fc1a6daee60737b591cf1be73cc4f79de37 /mm/shmem.c
parent30066ce675d3af350bc5a53858991c0b518dda00 (diff)
parentfd50ecaddf8372a1d96e0daeaac0f93cf04e4d42 (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 'mm/shmem.c')
-rw-r--r--mm/shmem.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 828253ab772c..8596217b5e26 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -3175,10 +3175,7 @@ static const struct inode_operations shmem_short_symlink_operations = {
3175 .readlink = generic_readlink, 3175 .readlink = generic_readlink,
3176 .get_link = simple_get_link, 3176 .get_link = simple_get_link,
3177#ifdef CONFIG_TMPFS_XATTR 3177#ifdef CONFIG_TMPFS_XATTR
3178 .setxattr = generic_setxattr,
3179 .getxattr = generic_getxattr,
3180 .listxattr = shmem_listxattr, 3178 .listxattr = shmem_listxattr,
3181 .removexattr = generic_removexattr,
3182#endif 3179#endif
3183}; 3180};
3184 3181
@@ -3186,10 +3183,7 @@ static const struct inode_operations shmem_symlink_inode_operations = {
3186 .readlink = generic_readlink, 3183 .readlink = generic_readlink,
3187 .get_link = shmem_get_link, 3184 .get_link = shmem_get_link,
3188#ifdef CONFIG_TMPFS_XATTR 3185#ifdef CONFIG_TMPFS_XATTR
3189 .setxattr = generic_setxattr,
3190 .getxattr = generic_getxattr,
3191 .listxattr = shmem_listxattr, 3186 .listxattr = shmem_listxattr,
3192 .removexattr = generic_removexattr,
3193#endif 3187#endif
3194}; 3188};
3195 3189
@@ -3683,10 +3677,7 @@ static const struct inode_operations shmem_inode_operations = {
3683 .getattr = shmem_getattr, 3677 .getattr = shmem_getattr,
3684 .setattr = shmem_setattr, 3678 .setattr = shmem_setattr,
3685#ifdef CONFIG_TMPFS_XATTR 3679#ifdef CONFIG_TMPFS_XATTR
3686 .setxattr = generic_setxattr,
3687 .getxattr = generic_getxattr,
3688 .listxattr = shmem_listxattr, 3680 .listxattr = shmem_listxattr,
3689 .removexattr = generic_removexattr,
3690 .set_acl = simple_set_acl, 3681 .set_acl = simple_set_acl,
3691#endif 3682#endif
3692}; 3683};
@@ -3705,10 +3696,7 @@ static const struct inode_operations shmem_dir_inode_operations = {
3705 .tmpfile = shmem_tmpfile, 3696 .tmpfile = shmem_tmpfile,
3706#endif 3697#endif
3707#ifdef CONFIG_TMPFS_XATTR 3698#ifdef CONFIG_TMPFS_XATTR
3708 .setxattr = generic_setxattr,
3709 .getxattr = generic_getxattr,
3710 .listxattr = shmem_listxattr, 3699 .listxattr = shmem_listxattr,
3711 .removexattr = generic_removexattr,
3712#endif 3700#endif
3713#ifdef CONFIG_TMPFS_POSIX_ACL 3701#ifdef CONFIG_TMPFS_POSIX_ACL
3714 .setattr = shmem_setattr, 3702 .setattr = shmem_setattr,
@@ -3718,10 +3706,7 @@ static const struct inode_operations shmem_dir_inode_operations = {
3718 3706
3719static const struct inode_operations shmem_special_inode_operations = { 3707static const struct inode_operations shmem_special_inode_operations = {
3720#ifdef CONFIG_TMPFS_XATTR 3708#ifdef CONFIG_TMPFS_XATTR
3721 .setxattr = generic_setxattr,
3722 .getxattr = generic_getxattr,
3723 .listxattr = shmem_listxattr, 3709 .listxattr = shmem_listxattr,
3724 .removexattr = generic_removexattr,
3725#endif 3710#endif
3726#ifdef CONFIG_TMPFS_POSIX_ACL 3711#ifdef CONFIG_TMPFS_POSIX_ACL
3727 .setattr = shmem_setattr, 3712 .setattr = shmem_setattr,