9P: fix return value in v9fs_fid_xattr_set
v9fs_fid_xattr_set is supposed to return 0 on success.
This corrects the behaviour introduced in commit
bdd5c28dcb
"9p: fix return value in case in v9fs_fid_xattr_set()"
(The function returns a negative error on error, as expected)
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
parent
afe604d01f
commit
f15844e077
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
|
||||||
offset += write_count;
|
offset += write_count;
|
||||||
value_len -= write_count;
|
value_len -= write_count;
|
||||||
}
|
}
|
||||||
retval = offset;
|
retval = 0;
|
||||||
err:
|
err:
|
||||||
p9_client_clunk(fid);
|
p9_client_clunk(fid);
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in a new issue