]> www.infradead.org Git - users/willy/linux.git/commit
btrfs: remove btrfs_set_range_writeback()
authorQu Wenruo <wqu@suse.com>
Sun, 6 Oct 2024 00:06:20 +0000 (10:36 +1030)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:15 +0000 (14:34 +0100)
commit0fcaf926ad7650f3f4badaca355e59ebc2773045
treeb67520603386119bc0eb9ef6648fd7feab2ed880
parentdd4028315e5dfdfe9ecde68db90681313822f906
btrfs: remove btrfs_set_range_writeback()

The function btrfs_set_range_writeback() was originally a callback for
metadata and data, to mark a range with writeback flag.

Then it was converted into a common function call for both metadata and
data.

From the very beginning, the function had been only called on a full page,
later converted to handle range inside a page.

But it never needed to handle multiple pages, and since commit
8189197425e7 ("btrfs: refactor __extent_writepage_io() to do
sector-by-sector submission") the function was only called on a
sector-by-sector basis.

This makes the function unnecessary, and can be converted to a simple
btrfs_folio_set_writeback() call instead.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/extent_io.c
fs/btrfs/inode.c