diff options
Diffstat (limited to 'fs/btrfs/xattr.c')
| -rw-r--r-- | fs/btrfs/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index 4e5a32173c4..f3107e4b4d5 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c | |||
| @@ -120,13 +120,13 @@ static int do_setxattr(struct btrfs_trans_handle *trans, | |||
| 120 | 120 | ||
| 121 | ret = btrfs_delete_one_dir_name(trans, root, path, di); | 121 | ret = btrfs_delete_one_dir_name(trans, root, path, di); |
| 122 | BUG_ON(ret); | 122 | BUG_ON(ret); |
| 123 | btrfs_release_path(root, path); | 123 | btrfs_release_path(path); |
| 124 | 124 | ||
| 125 | /* if we don't have a value then we are removing the xattr */ | 125 | /* if we don't have a value then we are removing the xattr */ |
| 126 | if (!value) | 126 | if (!value) |
| 127 | goto out; | 127 | goto out; |
| 128 | } else { | 128 | } else { |
| 129 | btrfs_release_path(root, path); | 129 | btrfs_release_path(path); |
| 130 | 130 | ||
| 131 | if (flags & XATTR_REPLACE) { | 131 | if (flags & XATTR_REPLACE) { |
| 132 | /* we couldn't find the attr to replace */ | 132 | /* we couldn't find the attr to replace */ |
