summaryrefslogtreecommitdiffstats
path: root/fs/jffs2
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 /fs/jffs2
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 'fs/jffs2')
-rw-r--r--fs/jffs2/dir.c3
-rw-r--r--fs/jffs2/file.c3
-rw-r--r--fs/jffs2/symlink.c3
-rw-r--r--fs/jffs2/xattr.h6
4 files changed, 0 insertions, 15 deletions
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c
index 30eb33ff8189..9b242434adf2 100644
--- a/fs/jffs2/dir.c
+++ b/fs/jffs2/dir.c
@@ -61,10 +61,7 @@ const struct inode_operations jffs2_dir_inode_operations =
61 .get_acl = jffs2_get_acl, 61 .get_acl = jffs2_get_acl,
62 .set_acl = jffs2_set_acl, 62 .set_acl = jffs2_set_acl,
63 .setattr = jffs2_setattr, 63 .setattr = jffs2_setattr,
64 .setxattr = jffs2_setxattr,
65 .getxattr = jffs2_getxattr,
66 .listxattr = jffs2_listxattr, 64 .listxattr = jffs2_listxattr,
67 .removexattr = jffs2_removexattr
68}; 65};
69 66
70/***********************************************************************/ 67/***********************************************************************/
diff --git a/fs/jffs2/file.c b/fs/jffs2/file.c
index 0e62dec3effc..c12476e309c6 100644
--- a/fs/jffs2/file.c
+++ b/fs/jffs2/file.c
@@ -66,10 +66,7 @@ const struct inode_operations jffs2_file_inode_operations =
66 .get_acl = jffs2_get_acl, 66 .get_acl = jffs2_get_acl,
67 .set_acl = jffs2_set_acl, 67 .set_acl = jffs2_set_acl,
68 .setattr = jffs2_setattr, 68 .setattr = jffs2_setattr,
69 .setxattr = jffs2_setxattr,
70 .getxattr = jffs2_getxattr,
71 .listxattr = jffs2_listxattr, 69 .listxattr = jffs2_listxattr,
72 .removexattr = jffs2_removexattr
73}; 70};
74 71
75const struct address_space_operations jffs2_file_address_operations = 72const struct address_space_operations jffs2_file_address_operations =
diff --git a/fs/jffs2/symlink.c b/fs/jffs2/symlink.c
index 2cabd649d4fb..8f3f0855fcd2 100644
--- a/fs/jffs2/symlink.c
+++ b/fs/jffs2/symlink.c
@@ -16,8 +16,5 @@ const struct inode_operations jffs2_symlink_inode_operations =
16 .readlink = generic_readlink, 16 .readlink = generic_readlink,
17 .get_link = simple_get_link, 17 .get_link = simple_get_link,
18 .setattr = jffs2_setattr, 18 .setattr = jffs2_setattr,
19 .setxattr = jffs2_setxattr,
20 .getxattr = jffs2_getxattr,
21 .listxattr = jffs2_listxattr, 19 .listxattr = jffs2_listxattr,
22 .removexattr = jffs2_removexattr
23}; 20};
diff --git a/fs/jffs2/xattr.h b/fs/jffs2/xattr.h
index 467ff376ee26..720007b2fd65 100644
--- a/fs/jffs2/xattr.h
+++ b/fs/jffs2/xattr.h
@@ -99,9 +99,6 @@ extern const struct xattr_handler jffs2_user_xattr_handler;
99extern const struct xattr_handler jffs2_trusted_xattr_handler; 99extern const struct xattr_handler jffs2_trusted_xattr_handler;
100 100
101extern ssize_t jffs2_listxattr(struct dentry *, char *, size_t); 101extern ssize_t jffs2_listxattr(struct dentry *, char *, size_t);
102#define jffs2_getxattr generic_getxattr
103#define jffs2_setxattr generic_setxattr
104#define jffs2_removexattr generic_removexattr
105 102
106#else 103#else
107 104
@@ -116,9 +113,6 @@ extern ssize_t jffs2_listxattr(struct dentry *, char *, size_t);
116 113
117#define jffs2_xattr_handlers NULL 114#define jffs2_xattr_handlers NULL
118#define jffs2_listxattr NULL 115#define jffs2_listxattr NULL
119#define jffs2_getxattr NULL
120#define jffs2_setxattr NULL
121#define jffs2_removexattr NULL
122 116
123#endif /* CONFIG_JFFS2_FS_XATTR */ 117#endif /* CONFIG_JFFS2_FS_XATTR */
124 118