diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-27 10:19:30 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-27 15:39:43 -0400 |
commit | 5930122683dff58f0846b0f0405b4bd598a3ba6a (patch) | |
tree | e7823a7eefaafb7b6ddc61a7ccc1a1892998310f /fs/ceph/xattr.c | |
parent | 002354112f1e3cc7400ef48b853aefb90e801588 (diff) | |
download | blackbird-op-linux-5930122683dff58f0846b0f0405b4bd598a3ba6a.tar.gz blackbird-op-linux-5930122683dff58f0846b0f0405b4bd598a3ba6a.zip |
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/ceph/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 0d66722c6a52..2baa6939dfe6 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -1051,12 +1051,13 @@ static int ceph_get_xattr_handler(const struct xattr_handler *handler, } static int ceph_set_xattr_handler(const struct xattr_handler *handler, - struct dentry *dentry, const char *name, - const void *value, size_t size, int flags) + struct dentry *unused, struct inode *inode, + const char *name, const void *value, + size_t size, int flags) { if (!ceph_is_valid_xattr(name)) return -EOPNOTSUPP; - return __ceph_setxattr(d_inode(dentry), name, value, size, flags); + return __ceph_setxattr(inode, name, value, size, flags); } const struct xattr_handler ceph_other_xattr_handler = { |