mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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>
This commit is contained in:
parent
fdf8d595f4
commit
67998cf438
@ -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);
|
btrfs_subpage_start_reader(fs_info, page, eb->start, eb->len);
|
||||||
ret = submit_extent_page(REQ_OP_READ, NULL, &bio_ctrl,
|
ret = submit_extent_page(REQ_OP_READ, NULL, &bio_ctrl,
|
||||||
eb->start, page, eb->len,
|
eb->start, page, eb->len,
|
||||||
eb->start - page_offset(page), 0, true);
|
eb->start - page_offset(page), 0, false);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
/*
|
/*
|
||||||
* In the endio function, if we hit something wrong we will
|
* In the endio function, if we hit something wrong we will
|
||||||
|
Loading…
Reference in New Issue
Block a user