aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-02 19:45:47 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-02 19:45:47 -0400
commit84695ffee7987ee1e581be4c4696e47e1a29403b (patch)
tree78ca09a96ecd6a6b5f4fae744c381968635af68d /fs/ext2
parentbf16200689118d19de1b8d2a3c314fc21f5dc7bb (diff)
parentce23e640133484eebc20ca7b7668388213e11327 (diff)
Merge getxattr prototype change into work.lookups
The rest of work.xattr stuff isn't needed for this branch
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/acl.c3
-rw-r--r--fs/ext2/namei.c2
-rw-r--r--fs/ext2/xattr_security.c6
-rw-r--r--fs/ext2/xattr_trusted.c6
-rw-r--r--fs/ext2/xattr_user.c8
5 files changed, 11 insertions, 14 deletions
diff --git a/fs/ext2/acl.c b/fs/ext2/acl.c
index 27695e6f4e46..42f1d1814083 100644
--- a/fs/ext2/acl.c
+++ b/fs/ext2/acl.c
@@ -172,9 +172,6 @@ ext2_get_acl(struct inode *inode, int type)
172 acl = ERR_PTR(retval); 172 acl = ERR_PTR(retval);
173 kfree(value); 173 kfree(value);
174 174
175 if (!IS_ERR(acl))
176 set_cached_acl(inode, type, acl);
177
178 return acl; 175 return acl;
179} 176}
180 177
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c
index d34843925b23..d446203127fc 100644
--- a/fs/ext2/namei.c
+++ b/fs/ext2/namei.c
@@ -82,7 +82,7 @@ struct dentry *ext2_get_parent(struct dentry *child)
82 unsigned long ino = ext2_inode_by_name(d_inode(child), &dotdot); 82 unsigned long ino = ext2_inode_by_name(d_inode(child), &dotdot);
83 if (!ino) 83 if (!ino)
84 return ERR_PTR(-ENOENT); 84 return ERR_PTR(-ENOENT);
85 return d_obtain_alias(ext2_iget(d_inode(child)->i_sb, ino)); 85 return d_obtain_alias(ext2_iget(child->d_sb, ino));
86} 86}
87 87
88/* 88/*
diff --git a/fs/ext2/xattr_security.c b/fs/ext2/xattr_security.c
index ba97f243b050..7fd3b867ce65 100644
--- a/fs/ext2/xattr_security.c
+++ b/fs/ext2/xattr_security.c
@@ -9,10 +9,10 @@
9 9
10static int 10static int
11ext2_xattr_security_get(const struct xattr_handler *handler, 11ext2_xattr_security_get(const struct xattr_handler *handler,
12 struct dentry *dentry, const char *name, 12 struct dentry *unused, struct inode *inode,
13 void *buffer, size_t size) 13 const char *name, void *buffer, size_t size)
14{ 14{
15 return ext2_xattr_get(d_inode(dentry), EXT2_XATTR_INDEX_SECURITY, name, 15 return ext2_xattr_get(inode, EXT2_XATTR_INDEX_SECURITY, name,
16 buffer, size); 16 buffer, size);
17} 17}
18 18
diff --git a/fs/ext2/xattr_trusted.c b/fs/ext2/xattr_trusted.c
index 2c94d1930626..0f85705ff519 100644
--- a/fs/ext2/xattr_trusted.c
+++ b/fs/ext2/xattr_trusted.c
@@ -16,10 +16,10 @@ ext2_xattr_trusted_list(struct dentry *dentry)
16 16
17static int 17static int
18ext2_xattr_trusted_get(const struct xattr_handler *handler, 18ext2_xattr_trusted_get(const struct xattr_handler *handler,
19 struct dentry *dentry, const char *name, 19 struct dentry *unused, struct inode *inode,
20 void *buffer, size_t size) 20 const char *name, void *buffer, size_t size)
21{ 21{
22 return ext2_xattr_get(d_inode(dentry), EXT2_XATTR_INDEX_TRUSTED, name, 22 return ext2_xattr_get(inode, EXT2_XATTR_INDEX_TRUSTED, name,
23 buffer, size); 23 buffer, size);
24} 24}
25 25
diff --git a/fs/ext2/xattr_user.c b/fs/ext2/xattr_user.c
index 72a2a96d677f..1fafd27037cc 100644
--- a/fs/ext2/xattr_user.c
+++ b/fs/ext2/xattr_user.c
@@ -18,12 +18,12 @@ ext2_xattr_user_list(struct dentry *dentry)
18 18
19static int 19static int
20ext2_xattr_user_get(const struct xattr_handler *handler, 20ext2_xattr_user_get(const struct xattr_handler *handler,
21 struct dentry *dentry, const char *name, 21 struct dentry *unused, struct inode *inode,
22 void *buffer, size_t size) 22 const char *name, void *buffer, size_t size)
23{ 23{
24 if (!test_opt(dentry->d_sb, XATTR_USER)) 24 if (!test_opt(inode->i_sb, XATTR_USER))
25 return -EOPNOTSUPP; 25 return -EOPNOTSUPP;
26 return ext2_xattr_get(d_inode(dentry), EXT2_XATTR_INDEX_USER, 26 return ext2_xattr_get(inode, EXT2_XATTR_INDEX_USER,
27 name, buffer, size); 27 name, buffer, size);
28} 28}
29 29