Message ID | 20230713130431.4798-9-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/9] btrfs: don't stop integrity writeback too early | expand |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 20bee7f8dae01c..46d04803d76f13 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2796,8 +2796,6 @@ static void btrfs_writepage_fixup_worker(struct btrfs_work *work) * to reflect the errors and clean the page. */ mapping_set_error(page->mapping, ret); - btrfs_mark_ordered_io_finished(inode, page, page_start, - PAGE_SIZE, !ret); btrfs_page_clear_uptodate(fs_info, page, page_start, PAGE_SIZE); clear_page_dirty_for_io(page); }
If btrfs_writepage_fixup_worker is called for a range that is covered by and ordered_extent, but which doesn't have the PageOrdered bit set, that means the ordered_extent is either for a pending direct I/O, or for a buffered writeback in the final stages of I/O completion. In either case it is now owned by the calling context, and should never be completed by it. Fixes: 87826df0ec36 ("btrfs: delalloc for page dirtied out-of-band in fixup worker") Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/btrfs/inode.c | 2 -- 1 file changed, 2 deletions(-)