diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 09:36:46 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 13:02:30 -0400 |
commit | e902baac656479bdb956224ed693578424cf9e96 (patch) | |
tree | 8abf80703f871c77850caf8fbdfd1b7f8acccc1a /fs/btrfs/xattr.c | |
parent | 6a884d7d527f32b5ea80dc472968a5430ffee9f5 (diff) |
btrfs: get fs_info from eb in btrfs_leaf_free_space
We can read fs_info from extent buffer and can drop it from the
parameters.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/xattr.c')
-rw-r--r-- | fs/btrfs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index 69126d5b4d62..fa820c56ba3e 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c | |||
@@ -174,7 +174,7 @@ static int do_setxattr(struct btrfs_trans_handle *trans, | |||
174 | char *ptr; | 174 | char *ptr; |
175 | 175 | ||
176 | if (size > old_data_len) { | 176 | if (size > old_data_len) { |
177 | if (btrfs_leaf_free_space(fs_info, leaf) < | 177 | if (btrfs_leaf_free_space(leaf) < |
178 | (size - old_data_len)) { | 178 | (size - old_data_len)) { |
179 | ret = -ENOSPC; | 179 | ret = -ENOSPC; |
180 | goto out; | 180 | goto out; |