summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 11:33:10 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:30 +0200
commit8f881e8c1880fb7029e74ccdaa7891bd042b6c63 (patch)
tree5afb20c49b787307d38cba2d17bc4f74a415b190 /fs/btrfs/extent_io.c
parent0ab020632860e202713a7615f82a59f595f028ae (diff)
downloadlinux-8f881e8c1880fb7029e74ccdaa7891bd042b6c63.tar.gz
linux-8f881e8c1880fb7029e74ccdaa7891bd042b6c63.tar.bz2
linux-8f881e8c1880fb7029e74ccdaa7891bd042b6c63.zip
btrfs: get fs_info from eb in leaf_data_end
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/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index d33d4d2ef099..a3e3e95c632e 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3710,7 +3710,7 @@ static noinline_for_stack int write_one_eb(struct extent_buffer *eb,
* header 0 1 2 .. N ... data_N .. data_2 data_1 data_0
*/
start = btrfs_item_nr_offset(nritems);
- end = BTRFS_LEAF_DATA_OFFSET + leaf_data_end(fs_info, eb);
+ end = BTRFS_LEAF_DATA_OFFSET + leaf_data_end(eb);
memzero_extent_buffer(eb, start, end - start);
}