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/jffs2 | |
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/jffs2')
-rw-r--r-- | fs/jffs2/acl.c | 2 | ||||
-rw-r--r-- | fs/jffs2/dir.c | 2 | ||||
-rw-r--r-- | fs/jffs2/security.c | 6 | ||||
-rw-r--r-- | fs/jffs2/super.c | 2 | ||||
-rw-r--r-- | fs/jffs2/xattr_trusted.c | 6 | ||||
-rw-r--r-- | fs/jffs2/xattr_user.c | 6 |
6 files changed, 11 insertions, 13 deletions
diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c index 2f7a3c090489..bc2693d56298 100644 --- a/fs/jffs2/acl.c +++ b/fs/jffs2/acl.c | |||
@@ -203,8 +203,6 @@ struct posix_acl *jffs2_get_acl(struct inode *inode, int type) | |||
203 | acl = ERR_PTR(rc); | 203 | acl = ERR_PTR(rc); |
204 | } | 204 | } |
205 | kfree(value); | 205 | kfree(value); |
206 | if (!IS_ERR(acl)) | ||
207 | set_cached_acl(inode, type, acl); | ||
208 | return acl; | 206 | return acl; |
209 | } | 207 | } |
210 | 208 | ||
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c index 30c4c9ebb693..7a9579e03dbb 100644 --- a/fs/jffs2/dir.c +++ b/fs/jffs2/dir.c | |||
@@ -241,7 +241,7 @@ static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry) | |||
241 | 241 | ||
242 | static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) | 242 | static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) |
243 | { | 243 | { |
244 | struct jffs2_sb_info *c = JFFS2_SB_INFO(d_inode(old_dentry)->i_sb); | 244 | struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); |
245 | struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); | 245 | struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); |
246 | struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); | 246 | struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); |
247 | int ret; | 247 | int ret; |
diff --git a/fs/jffs2/security.c b/fs/jffs2/security.c index 7a28facd7175..3ed9a4b49778 100644 --- a/fs/jffs2/security.c +++ b/fs/jffs2/security.c | |||
@@ -49,10 +49,10 @@ int jffs2_init_security(struct inode *inode, struct inode *dir, | |||
49 | 49 | ||
50 | /* ---- XATTR Handler for "security.*" ----------------- */ | 50 | /* ---- XATTR Handler for "security.*" ----------------- */ |
51 | static int jffs2_security_getxattr(const struct xattr_handler *handler, | 51 | static int jffs2_security_getxattr(const struct xattr_handler *handler, |
52 | struct dentry *dentry, const char *name, | 52 | struct dentry *unused, struct inode *inode, |
53 | void *buffer, size_t size) | 53 | const char *name, void *buffer, size_t size) |
54 | { | 54 | { |
55 | return do_jffs2_getxattr(d_inode(dentry), JFFS2_XPREFIX_SECURITY, | 55 | return do_jffs2_getxattr(inode, JFFS2_XPREFIX_SECURITY, |
56 | name, buffer, size); | 56 | name, buffer, size); |
57 | } | 57 | } |
58 | 58 | ||
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index 0a9a114bb9d1..5ef21f4c4c77 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c | |||
@@ -147,7 +147,7 @@ static struct dentry *jffs2_get_parent(struct dentry *child) | |||
147 | JFFS2_DEBUG("Parent of directory ino #%u is #%u\n", | 147 | JFFS2_DEBUG("Parent of directory ino #%u is #%u\n", |
148 | f->inocache->ino, pino); | 148 | f->inocache->ino, pino); |
149 | 149 | ||
150 | return d_obtain_alias(jffs2_iget(d_inode(child)->i_sb, pino)); | 150 | return d_obtain_alias(jffs2_iget(child->d_sb, pino)); |
151 | } | 151 | } |
152 | 152 | ||
153 | static const struct export_operations jffs2_export_ops = { | 153 | static const struct export_operations jffs2_export_ops = { |
diff --git a/fs/jffs2/xattr_trusted.c b/fs/jffs2/xattr_trusted.c index b2555ef07a12..4ebecff1d922 100644 --- a/fs/jffs2/xattr_trusted.c +++ b/fs/jffs2/xattr_trusted.c | |||
@@ -17,10 +17,10 @@ | |||
17 | #include "nodelist.h" | 17 | #include "nodelist.h" |
18 | 18 | ||
19 | static int jffs2_trusted_getxattr(const struct xattr_handler *handler, | 19 | static int jffs2_trusted_getxattr(const struct xattr_handler *handler, |
20 | struct dentry *dentry, const char *name, | 20 | struct dentry *unused, struct inode *inode, |
21 | void *buffer, size_t size) | 21 | const char *name, void *buffer, size_t size) |
22 | { | 22 | { |
23 | return do_jffs2_getxattr(d_inode(dentry), JFFS2_XPREFIX_TRUSTED, | 23 | return do_jffs2_getxattr(inode, JFFS2_XPREFIX_TRUSTED, |
24 | name, buffer, size); | 24 | name, buffer, size); |
25 | } | 25 | } |
26 | 26 | ||
diff --git a/fs/jffs2/xattr_user.c b/fs/jffs2/xattr_user.c index 539bd630b5e4..bce249e1b277 100644 --- a/fs/jffs2/xattr_user.c +++ b/fs/jffs2/xattr_user.c | |||
@@ -17,10 +17,10 @@ | |||
17 | #include "nodelist.h" | 17 | #include "nodelist.h" |
18 | 18 | ||
19 | static int jffs2_user_getxattr(const struct xattr_handler *handler, | 19 | static int jffs2_user_getxattr(const struct xattr_handler *handler, |
20 | struct dentry *dentry, const char *name, | 20 | struct dentry *unused, struct inode *inode, |
21 | void *buffer, size_t size) | 21 | const char *name, void *buffer, size_t size) |
22 | { | 22 | { |
23 | return do_jffs2_getxattr(d_inode(dentry), JFFS2_XPREFIX_USER, | 23 | return do_jffs2_getxattr(inode, JFFS2_XPREFIX_USER, |
24 | name, buffer, size); | 24 | name, buffer, size); |
25 | } | 25 | } |
26 | 26 | ||