aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/xattr.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-27 10:19:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-27 15:39:43 -0400
commit5930122683dff58f0846b0f0405b4bd598a3ba6a (patch)
treee7823a7eefaafb7b6ddc61a7ccc1a1892998310f /fs/cifs/xattr.c
parent002354112f1e3cc7400ef48b853aefb90e801588 (diff)
switch xattr_handler->set() to passing dentry and inode separately
preparation for similar switch in ->setxattr() (see the next commit for rationale). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/xattr.c')
-rw-r--r--fs/cifs/xattr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/cifs/xattr.c b/fs/cifs/xattr.c
index c8b77aa24a1d..5e23f64c0804 100644
--- a/fs/cifs/xattr.c
+++ b/fs/cifs/xattr.c
@@ -39,8 +39,9 @@
39enum { XATTR_USER, XATTR_CIFS_ACL, XATTR_ACL_ACCESS, XATTR_ACL_DEFAULT }; 39enum { XATTR_USER, XATTR_CIFS_ACL, XATTR_ACL_ACCESS, XATTR_ACL_DEFAULT };
40 40
41static int cifs_xattr_set(const struct xattr_handler *handler, 41static int cifs_xattr_set(const struct xattr_handler *handler,
42 struct dentry *dentry, const char *name, 42 struct dentry *dentry, struct inode *inode,
43 const void *value, size_t size, int flags) 43 const char *name, const void *value,
44 size_t size, int flags)
44{ 45{
45 int rc = -EOPNOTSUPP; 46 int rc = -EOPNOTSUPP;
46 unsigned int xid; 47 unsigned int xid;
@@ -99,12 +100,12 @@ static int cifs_xattr_set(const struct xattr_handler *handler,
99 if (value && 100 if (value &&
100 pTcon->ses->server->ops->set_acl) 101 pTcon->ses->server->ops->set_acl)
101 rc = pTcon->ses->server->ops->set_acl(pacl, 102 rc = pTcon->ses->server->ops->set_acl(pacl,
102 size, d_inode(dentry), 103 size, inode,
103 full_path, CIFS_ACL_DACL); 104 full_path, CIFS_ACL_DACL);
104 else 105 else
105 rc = -EOPNOTSUPP; 106 rc = -EOPNOTSUPP;
106 if (rc == 0) /* force revalidate of the inode */ 107 if (rc == 0) /* force revalidate of the inode */
107 CIFS_I(d_inode(dentry))->time = 0; 108 CIFS_I(inode)->time = 0;
108 kfree(pacl); 109 kfree(pacl);
109 } 110 }
110#endif /* CONFIG_CIFS_ACL */ 111#endif /* CONFIG_CIFS_ACL */