diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 11:21:41 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:29 +0200 |
commit | 9df76fb5442abdcf5dcc1b2676927482614ac43f (patch) | |
tree | d15c797199645b7ee9ee6d9c554a7ce185946960 /fs/btrfs/extent_io.c | |
parent | 7d157c3d4810cfb9ea1bb0977e8e2db02032173a (diff) | |
download | linux-9df76fb5442abdcf5dcc1b2676927482614ac43f.tar.bz2 |
btrfs: get fs_info from eb in lock_extent_buffer_for_io
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.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 66b4637b29b3..853a5fcec193 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3497,11 +3497,10 @@ void wait_on_extent_buffer_writeback(struct extent_buffer *eb) * Return >0 is same as 0, except bio is not submitted * Return <0 if something went wrong, no page is locked */ -static noinline_for_stack int -lock_extent_buffer_for_io(struct extent_buffer *eb, - struct btrfs_fs_info *fs_info, +static noinline_for_stack int lock_extent_buffer_for_io(struct extent_buffer *eb, struct extent_page_data *epd) { + struct btrfs_fs_info *fs_info = eb->fs_info; int i, num_pages, failed_page_nr; int flush = 0; int ret = 0; @@ -3829,7 +3828,7 @@ retry: continue; prev_eb = eb; - ret = lock_extent_buffer_for_io(eb, fs_info, &epd); + ret = lock_extent_buffer_for_io(eb, &epd); if (!ret) { free_extent_buffer(eb); continue; |