Skip to content

Extent buffer locking cleanups, part 1

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: split btrfs_set_lock_blocking_rw to read and write helpersfs/btrfs/locking.c fs/btrfs/locking.h+40 -251 reply
2/6btrfs: split btrfs_clear_lock_blocking_rw to read and write helpersfs/btrfs/locking.c fs/btrfs/locking.h+27 -271 reply
3/6btrfs: replace btrfs_set_lock_blocking_rw with appropriate helpersfs/btrfs/backref.c fs/btrfs/ctree.c fs/btrfs/disk-io.c +3 more+11 -111 reply
4/6btrfs: open code now trivial btrfs_set_lock_blockingfs/btrfs/ctree.c fs/btrfs/disk-io.c fs/btrfs/extent-tree.c +5 more+28 -331 reply
5/6btrfs: simplify waiting loop in btrfs_tree_lockfs/btrfs/locking.c+2 -91 reply
6/6btrfs: merge btrfs_set_lock_blocking_rw with it's callerfs/btrfs/ctree.c fs/btrfs/locking.h+10 -151 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Extent buffer locking cleanups, part 1

This series cleans up a few locking helpers, removes conditional switches by read/write type where not necessary and updates the callers. No changes expected, other than tiny speedups resulting from smaller code.

David Sterba (6):
btrfs: split btrfs_set_lock_blocking_rw to read and write helpers
btrfs: split btrfs_clear_lock_blocking_rw to read and write helpers
btrfs: replace btrfs_set_lock_blocking_rw with appropriate helpers
btrfs: open code now trivial btrfs_set_lock_blocking
btrfs: simplify waiting loop in btrfs_tree_lock
btrfs: merge btrfs_set_lock_blocking_rw with it's caller

 fs/btrfs/backref.c     |   4 +-
 fs/btrfs/ctree.c       |  39 +++++++++------
 fs/btrfs/disk-io.c     |   4 +-
 fs/btrfs/extent-tree.c |  14 +++---
 fs/btrfs/locking.c     | 108 ++++++++++++++++++++---------------------
 fs/btrfs/locking.h     |  15 ++----
 fs/btrfs/qgroup.c      |   6 +--
 fs/btrfs/ref-verify.c  |   4 +-
 fs/btrfs/relocation.c  |   8 +--
 fs/btrfs/transaction.c |   2 +-
 fs/btrfs/tree-defrag.c |   2 +-
 fs/btrfs/tree-log.c    |   6 +--
 12 files changed, 105 insertions(+), 107 deletions(-)
Signature · 1 line
2.20.1