diff options
| author | Qu Wenruo <wqu@suse.com> | 2024-10-09 16:21:06 +1030 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2024-11-11 14:34:18 +0100 |
| commit | 336e69f3025fb70db9d0dfb7f36ac79887bf5341 (patch) | |
| tree | b7e2f312a9d6df6c5167700d4719fc37f222ec8b /scripts/gdb/linux/xarray.py | |
| parent | 8511074c42b6255e03eceb09396338572572f1c7 (diff) | |
btrfs: unify to use writer locks for subpage locking
Since commit d7172f52e993 ("btrfs: use per-buffer locking for
extent_buffer reading"), metadata read no longer relies on the subpage
reader locking.
This means we do not need to maintain a different metadata/data split
for locking, so we can convert the existing reader lock users by:
- add_ra_bio_pages()
Convert to btrfs_folio_set_writer_lock()
- end_folio_read()
Convert to btrfs_folio_end_writer_lock()
- begin_folio_read()
Convert to btrfs_folio_set_writer_lock()
- folio_range_has_eb()
Remove the subpage->readers checks, since it is always 0.
- Remove btrfs_subpage_start_reader() and btrfs_subpage_end_reader()
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
