btrfs: fix over-80 lines introduced by previous cleanups
This goes as a separate patch because fixing that inside the patches caused too many many conflicts. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -47,8 +47,8 @@ ssize_t __btrfs_getxattr(struct inode *inode, const char *name,
|
||||
return -ENOMEM;
|
||||
|
||||
/* lookup the xattr by name */
|
||||
di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), name,
|
||||
strlen(name), 0);
|
||||
di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)),
|
||||
name, strlen(name), 0);
|
||||
if (!di) {
|
||||
ret = -ENODATA;
|
||||
goto out;
|
||||
@@ -108,8 +108,8 @@ static int do_setxattr(struct btrfs_trans_handle *trans,
|
||||
path->skip_release_on_error = 1;
|
||||
|
||||
if (!value) {
|
||||
di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(BTRFS_I(inode)),
|
||||
name, name_len, -1);
|
||||
di = btrfs_lookup_xattr(trans, root, path,
|
||||
btrfs_ino(BTRFS_I(inode)), name, name_len, -1);
|
||||
if (!di && (flags & XATTR_REPLACE))
|
||||
ret = -ENODATA;
|
||||
else if (IS_ERR(di))
|
||||
@@ -128,8 +128,8 @@ static int do_setxattr(struct btrfs_trans_handle *trans,
|
||||
*/
|
||||
if (flags & XATTR_REPLACE) {
|
||||
ASSERT(inode_is_locked(inode));
|
||||
di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)),
|
||||
name, name_len, 0);
|
||||
di = btrfs_lookup_xattr(NULL, root, path,
|
||||
btrfs_ino(BTRFS_I(inode)), name, name_len, 0);
|
||||
if (!di)
|
||||
ret = -ENODATA;
|
||||
else if (IS_ERR(di))
|
||||
|
Reference in New Issue
Block a user