Extent buffer locking cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | btrfs: add assertion helpers for spinning writersfs/ | +24 | 0 replies | |
| 2/9 | btrfs: use assertion helpers for spinning writersfs/ fs/ fs/ | +11 | 0 replies | |
| 3/9 | btrfs: add assertion helpers for spinning readersfs/ | +13 | 0 replies | |
| 4/9 | btrfs: use assertion helpers for spinning readersfs/ fs/ fs/ | +7 | 1 reply | |
| 5/9 | btrfs: add assertion helpers for extent buffer read lock countersfs/ | +18 | 0 replies | |
| 6/9 | btrfs: use assertion helpers for extent buffer read lock countersfs/ fs/ fs/ | +7 | 0 replies | |
| 7/9 | btrfs: add assertion helpers for extent buffer write lock countersfs/ | +18 | 0 replies | |
| 8/9 | btrfs: use assertion helpers for extent buffer write lock countersfs/ fs/ fs/ | +5 | 0 replies | |
| 9/9 | btrfs: switch extent_buffer::lock_nested to boolfs/ fs/ fs/ | +5 | 0 replies |
Reviews trailers per patch
None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Nikolay Borisov | Johannes Thumshirn |
|---|---|---|
| Series | R-b | R-b |
| 1/9 | ||
| 2/9 | ||
| 3/9 | ||
| 4/9 | ||
| 5/9 | ||
| 6/9 | ||
| 7/9 | ||
| 8/9 | ||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] Extent buffer locking cleanups
The series moves several atomic counters under CONFIG_BTRFS_DEBUG. The selected counters are not essential for the extent buffer locking to work. There's some space saving (4x 4B at least) and the cachelines are less stressed on non-debugging builds.
The final size is 264 from 280, getting to 256 would be nice but hard or making the code unreadable. I have ideas to shave 7 more bytes but that's for another patchset.
David Sterba (9):
btrfs: add assertion helpers for spinning writers
btrfs: use assertion helpers for spinning writers
btrfs: add assertion helpers for spinning readers
btrfs: use assertion helpers for spinning readers
btrfs: add assertion helpers for extent buffer read lock counters
btrfs: use assertion helpers for extent buffer read lock counters
btrfs: add assertion helpers for extent buffer write lock counters
btrfs: use assertion helpers for extent buffer write lock counters
btrfs: switch extent_buffer::lock_nested to bool
fs/btrfs/extent_io.c | 13 +++-- fs/btrfs/extent_io.h | 11 ++-- fs/btrfs/locking.c | 133 ++++++++++++++++++++++++++++++------------- 3 files changed, 107 insertions(+), 50 deletions(-)
Signature · 1 line
2.20.1