diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 19:45:47 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 19:45:47 -0400 |
| commit | 84695ffee7987ee1e581be4c4696e47e1a29403b (patch) | |
| tree | 78ca09a96ecd6a6b5f4fae744c381968635af68d /fs/jfs | |
| parent | bf16200689118d19de1b8d2a3c314fc21f5dc7bb (diff) | |
| parent | ce23e640133484eebc20ca7b7668388213e11327 (diff) | |
Merge getxattr prototype change into work.lookups
The rest of work.xattr stuff isn't needed for this branch
Diffstat (limited to 'fs/jfs')
| -rw-r--r-- | fs/jfs/acl.c | 6 | ||||
| -rw-r--r-- | fs/jfs/jfs_xattr.h | 2 | ||||
| -rw-r--r-- | fs/jfs/namei.c | 2 | ||||
| -rw-r--r-- | fs/jfs/xattr.c | 8 |
4 files changed, 6 insertions, 12 deletions
diff --git a/fs/jfs/acl.c b/fs/jfs/acl.c index 49456853e9de..21fa92ba2c19 100644 --- a/fs/jfs/acl.c +++ b/fs/jfs/acl.c | |||
| @@ -34,10 +34,6 @@ struct posix_acl *jfs_get_acl(struct inode *inode, int type) | |||
| 34 | int size; | 34 | int size; |
| 35 | char *value = NULL; | 35 | char *value = NULL; |
| 36 | 36 | ||
| 37 | acl = get_cached_acl(inode, type); | ||
| 38 | if (acl != ACL_NOT_CACHED) | ||
| 39 | return acl; | ||
| 40 | |||
| 41 | switch(type) { | 37 | switch(type) { |
| 42 | case ACL_TYPE_ACCESS: | 38 | case ACL_TYPE_ACCESS: |
| 43 | ea_name = XATTR_NAME_POSIX_ACL_ACCESS; | 39 | ea_name = XATTR_NAME_POSIX_ACL_ACCESS; |
| @@ -67,8 +63,6 @@ struct posix_acl *jfs_get_acl(struct inode *inode, int type) | |||
| 67 | acl = posix_acl_from_xattr(&init_user_ns, value, size); | 63 | acl = posix_acl_from_xattr(&init_user_ns, value, size); |
| 68 | } | 64 | } |
| 69 | kfree(value); | 65 | kfree(value); |
| 70 | if (!IS_ERR(acl)) | ||
| 71 | set_cached_acl(inode, type, acl); | ||
| 72 | return acl; | 66 | return acl; |
| 73 | } | 67 | } |
| 74 | 68 | ||
diff --git a/fs/jfs/jfs_xattr.h b/fs/jfs/jfs_xattr.h index e8d717dabca3..e69e14f3777b 100644 --- a/fs/jfs/jfs_xattr.h +++ b/fs/jfs/jfs_xattr.h | |||
| @@ -57,7 +57,7 @@ extern int __jfs_setxattr(tid_t, struct inode *, const char *, const void *, | |||
| 57 | extern int jfs_setxattr(struct dentry *, const char *, const void *, size_t, | 57 | extern int jfs_setxattr(struct dentry *, const char *, const void *, size_t, |
| 58 | int); | 58 | int); |
| 59 | extern ssize_t __jfs_getxattr(struct inode *, const char *, void *, size_t); | 59 | extern ssize_t __jfs_getxattr(struct inode *, const char *, void *, size_t); |
| 60 | extern ssize_t jfs_getxattr(struct dentry *, const char *, void *, size_t); | 60 | extern ssize_t jfs_getxattr(struct dentry *, struct inode *, const char *, void *, size_t); |
| 61 | extern ssize_t jfs_listxattr(struct dentry *, char *, size_t); | 61 | extern ssize_t jfs_listxattr(struct dentry *, char *, size_t); |
| 62 | extern int jfs_removexattr(struct dentry *, const char *); | 62 | extern int jfs_removexattr(struct dentry *, const char *); |
| 63 | 63 | ||
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index 701f89370de7..8a40941ac9a6 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c | |||
| @@ -1524,7 +1524,7 @@ struct dentry *jfs_get_parent(struct dentry *dentry) | |||
| 1524 | parent_ino = | 1524 | parent_ino = |
| 1525 | le32_to_cpu(JFS_IP(d_inode(dentry))->i_dtroot.header.idotdot); | 1525 | le32_to_cpu(JFS_IP(d_inode(dentry))->i_dtroot.header.idotdot); |
| 1526 | 1526 | ||
| 1527 | return d_obtain_alias(jfs_iget(d_inode(dentry)->i_sb, parent_ino)); | 1527 | return d_obtain_alias(jfs_iget(dentry->d_sb, parent_ino)); |
| 1528 | } | 1528 | } |
| 1529 | 1529 | ||
| 1530 | const struct inode_operations jfs_dir_inode_operations = { | 1530 | const struct inode_operations jfs_dir_inode_operations = { |
diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index 48b15a6e5558..5becc6a3ff8c 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c | |||
| @@ -933,8 +933,8 @@ ssize_t __jfs_getxattr(struct inode *inode, const char *name, void *data, | |||
| 933 | return size; | 933 | return size; |
| 934 | } | 934 | } |
| 935 | 935 | ||
| 936 | ssize_t jfs_getxattr(struct dentry *dentry, const char *name, void *data, | 936 | ssize_t jfs_getxattr(struct dentry *dentry, struct inode *inode, |
| 937 | size_t buf_size) | 937 | const char *name, void *data, size_t buf_size) |
| 938 | { | 938 | { |
| 939 | int err; | 939 | int err; |
| 940 | 940 | ||
| @@ -944,7 +944,7 @@ ssize_t jfs_getxattr(struct dentry *dentry, const char *name, void *data, | |||
| 944 | * for it via sb->s_xattr. | 944 | * for it via sb->s_xattr. |
| 945 | */ | 945 | */ |
| 946 | if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) | 946 | if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) |
| 947 | return generic_getxattr(dentry, name, data, buf_size); | 947 | return generic_getxattr(dentry, inode, name, data, buf_size); |
| 948 | 948 | ||
| 949 | if (strncmp(name, XATTR_OS2_PREFIX, XATTR_OS2_PREFIX_LEN) == 0) { | 949 | if (strncmp(name, XATTR_OS2_PREFIX, XATTR_OS2_PREFIX_LEN) == 0) { |
| 950 | /* | 950 | /* |
| @@ -959,7 +959,7 @@ ssize_t jfs_getxattr(struct dentry *dentry, const char *name, void *data, | |||
| 959 | return -EOPNOTSUPP; | 959 | return -EOPNOTSUPP; |
| 960 | } | 960 | } |
| 961 | 961 | ||
| 962 | err = __jfs_getxattr(d_inode(dentry), name, data, buf_size); | 962 | err = __jfs_getxattr(inode, name, data, buf_size); |
| 963 | 963 | ||
| 964 | return err; | 964 | return err; |
| 965 | } | 965 | } |
