diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-04-22 08:43:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-12 22:29:18 -0400 |
commit | c8b6056a504fa384f36e7577fc5a1c1684fcf18a (patch) | |
tree | 9ef7ab6b2ed44a97438d941e576daf7293f4edce /fs/jfs/file.c | |
parent | 6c8f980c75185f8ba897814363d21882f7453f53 (diff) |
jfs: Switch to generic xattr handlers
This is mostly the same as on other filesystems except for attribute
names with an "os2." prefix: for those, the prefix is not stored on
disk, and on-attribute names without a prefix have "os2." added.
As on several other filesystems, the underlying function for
setting/removing xattrs (__jfs_setxattr) removes attributes when the
value is NULL, so the set xattr handlers will work as expected.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jfs/file.c')
-rw-r--r-- | fs/jfs/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jfs/file.c b/fs/jfs/file.c index 4ce7735dd042..7f1a585a0a94 100644 --- a/fs/jfs/file.c +++ b/fs/jfs/file.c | |||
@@ -140,10 +140,10 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr) | |||
140 | } | 140 | } |
141 | 141 | ||
142 | const struct inode_operations jfs_file_inode_operations = { | 142 | const struct inode_operations jfs_file_inode_operations = { |
143 | .setxattr = jfs_setxattr, | 143 | .setxattr = generic_setxattr, |
144 | .getxattr = jfs_getxattr, | 144 | .getxattr = generic_getxattr, |
145 | .listxattr = jfs_listxattr, | 145 | .listxattr = jfs_listxattr, |
146 | .removexattr = jfs_removexattr, | 146 | .removexattr = generic_removexattr, |
147 | .setattr = jfs_setattr, | 147 | .setattr = jfs_setattr, |
148 | #ifdef CONFIG_JFS_POSIX_ACL | 148 | #ifdef CONFIG_JFS_POSIX_ACL |
149 | .get_acl = jfs_get_acl, | 149 | .get_acl = jfs_get_acl, |