9P: fix return value in v9fs_fid_xattr_set
authorDominique Martinet <dominique.martinet@cea.fr>
Wed, 21 May 2014 08:02:12 +0000 (10:02 +0200)
committerEric Van Hensbergen <ericvh@gmail.com>
Sun, 1 Jun 2014 20:31:34 +0000 (15:31 -0500)
v9fs_fid_xattr_set is supposed to return 0 on success.

This corrects the behaviour introduced in commit
bdd5c28dcb8330b9074404cc92a0b83aae5606a
"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>
fs/9p/xattr.c

index 04133a1fd9cbea42585f530b56bb73f93b1bd1dc..f95e01e058e4de657b3cd85aafc233f0565c6e16 100644 (file)
@@ -156,7 +156,7 @@ int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
                offset += write_count;
                value_len -= write_count;
        }
-       retval = offset;
+       retval = 0;
 err:
        p9_client_clunk(fid);
        return retval;