]> Git Repo - linux.git/commit
btrfs: remove btrfs_folio_end_all_writers()
authorQu Wenruo <[email protected]>
Fri, 30 Aug 2024 07:18:20 +0000 (16:48 +0930)
committerDavid Sterba <[email protected]>
Tue, 10 Sep 2024 14:51:22 +0000 (16:51 +0200)
commitab6eac7c9111b75fca243e2590a17b55e96e9d31
tree365e041dfd22a69aa9fcb25f802d4fba82072844
parentca283ea9920ac20ae23ed398b693db3121045019
btrfs: remove btrfs_folio_end_all_writers()

The function btrfs_folio_end_all_writers() is only utilized in
extent_writepage() as a way to unlock all subpage range (for both
successful submission and error handling).

Meanwhile we have a similar function, btrfs_folio_end_writer_lock().

The difference is, btrfs_folio_end_writer_lock() expects a range that is
a subset of the already locked range.

This limit on btrfs_folio_end_writer_lock() is a little overkilled,
preventing it from being utilized for error paths.

So here we enhance btrfs_folio_end_writer_lock() to accept a superset of
the locked range, and only end the locked subset.
This means we can replace btrfs_folio_end_all_writers() with
btrfs_folio_end_writer_lock() instead.

Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/extent_io.c
fs/btrfs/subpage.c
fs/btrfs/subpage.h
This page took 0.054042 seconds and 4 git commands to generate.