diff options
| author | Qu Wenruo <[email protected]> | 2024-08-30 07:18:20 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-09-10 14:51:22 +0000 |
| commit | ab6eac7c9111b75fca243e2590a17b55e96e9d31 (patch) | |
| tree | 365e041dfd22a69aa9fcb25f802d4fba82072844 /rust/helpers/mutex.c | |
| parent | btrfs: constify more pointer parameters (diff) | |
| download | kernel-ab6eac7c9111b75fca243e2590a17b55e96e9d31.tar.gz kernel-ab6eac7c9111b75fca243e2590a17b55e96e9d31.zip | |
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]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
