diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-03 11:12:12 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-03 11:12:12 -0400 |
commit | 7d50a29fe43848b7d3c8309f8617db3305c0db18 (patch) | |
tree | 640ab336e23b4aa1e168ab2d0ed51a720ec8fc6d /fs/9p/xattr.c | |
parent | 797fc16d8f00bf681b7f9969c0701725b472b11a (diff) |
9p: use clone_fid()
in a bunch of places it cleans the things up
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/xattr.c')
-rw-r--r-- | fs/9p/xattr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/9p/xattr.c b/fs/9p/xattr.c index a6bd349bab23..f329eee6dc93 100644 --- a/fs/9p/xattr.c +++ b/fs/9p/xattr.c @@ -97,8 +97,6 @@ int v9fs_xattr_set(struct dentry *dentry, const char *name, const void *value, size_t value_len, int flags) { struct p9_fid *fid = v9fs_fid_lookup(dentry); - if (IS_ERR(fid)) - return PTR_ERR(fid); return v9fs_fid_xattr_set(fid, name, value, value_len, flags); } @@ -115,7 +113,7 @@ int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name, name, value_len, flags); /* Clone it */ - fid = p9_client_walk(fid, 0, NULL, 1); + fid = clone_fid(fid); if (IS_ERR(fid)) return PTR_ERR(fid); |