diff options
| author | Qu Wenruo <[email protected]> | 2024-10-06 00:06:20 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-11-11 13:34:15 +0000 |
| commit | 0fcaf926ad7650f3f4badaca355e59ebc2773045 (patch) | |
| tree | b67520603386119bc0eb9ef6648fd7feab2ed880 /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: qgroup: run delayed iputs after ordered extent completion (diff) | |
| download | kernel-0fcaf926ad7650f3f4badaca355e59ebc2773045.tar.gz kernel-0fcaf926ad7650f3f4badaca355e59ebc2773045.zip | |
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index e152fde888fc..c514bab532fa 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -577,7 +577,6 @@ void btrfs_merge_delalloc_extent(struct btrfs_inode *inode, struct extent_state struct extent_state *other); void btrfs_split_delalloc_extent(struct btrfs_inode *inode, struct extent_state *orig, u64 split); -void btrfs_set_range_writeback(struct btrfs_inode *inode, u64 start, u64 end); void btrfs_evict_inode(struct inode *inode); struct inode *btrfs_alloc_inode(struct super_block *sb); void btrfs_destroy_inode(struct inode *inode); |
