diff options
| author | Christoph Hellwig <hch@lst.de> | 2023-02-27 08:16:53 -0700 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2023-04-17 18:01:15 +0200 |
| commit | 67998cf438e20f5858dbcf488f1662861aab5f44 (patch) | |
| tree | 88539e039319f7778d3f449589fd7db51c8dcaf4 | |
| parent | fdf8d595f49c79f1c47e5a91c4c6582572c5eeee (diff) | |
| download | linux-67998cf438e20f5858dbcf488f1662861aab5f44.tar.gz linux-67998cf438e20f5858dbcf488f1662861aab5f44.tar.bz2 linux-67998cf438e20f5858dbcf488f1662861aab5f44.zip | |
btrfs: don't set force_bio_submit in read_extent_buffer_subpage
When read_extent_buffer_subpage calls submit_extent_page, it does
so on a freshly initialized btrfs_bio_ctrl structure that can't have
a valid bio to submit. Clear the force_bio_submit parameter to false
as there is nothing to submit.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 408a5d800275..c903a8d17910 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -4449,7 +4449,7 @@ static int read_extent_buffer_subpage(struct extent_buffer *eb, int wait, btrfs_subpage_start_reader(fs_info, page, eb->start, eb->len); ret = submit_extent_page(REQ_OP_READ, NULL, &bio_ctrl, eb->start, page, eb->len, - eb->start - page_offset(page), 0, true); + eb->start - page_offset(page), 0, false); if (ret) { /* * In the endio function, if we hit something wrong we will |
