Skip to content

btrfs: rework directory logging to make it more efficient

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: remove root argument from btrfs_log_inode() and its calleesfs/btrfs/tree-log.c+24 -283 replies
2/5btrfs: remove redundant log root assignment from log_dir_items()fs/btrfs/tree-log.c+0 -20 replies
3/5btrfs: factor out the copying loop of dir items from log_dir_items()fs/btrfs/tree-log.c+75 -600 replies
4/5btrfs: insert items in batches when logging a directory when possiblefs/btrfs/tree-log.c+180 -370 replies
5/5btrfs: keep track of the last logged keys when logging a directoryfs/btrfs/btrfs_inode.h fs/btrfs/inode.c fs/btrfs/tree-log.c +1 more+75 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] btrfs: rework directory logging to make it more efficient

From: Filipe Manana <[email protected]>

This patchset changes directory logging to make it more efficient, by doing bulk inserts of directory items and avoiding tree searches on a item by item basis when they can be avoided. These decrease the amount of time we spend logging directory items and reduces lock contention on a log tree in case there are other tasks logging other inodes. The last patch mentions test results in its changelog, and the first 3 patches are just cleanups and preparatory work. This is also ground work for future changes to directory logging, but since these are already big enough, I'm sending these separately to get into integration/linux-next sooner rather than later.

Filipe Manana (5):
btrfs: remove root argument from btrfs_log_inode() and its callees
btrfs: remove redundant log root assignment from log_dir_items()
btrfs: factor out the copying loop of dir items from log_dir_items()
btrfs: insert items in batches when logging a directory when possible
btrfs: keep track of the last logged keys when logging a directory

 fs/btrfs/btrfs_inode.h |  39 ++--
 fs/btrfs/inode.c       |   6 +-
 fs/btrfs/tree-log.c    | 419 ++++++++++++++++++++++++++++++-----------
 fs/btrfs/tree-log.h    |   2 +
 4 files changed, 340 insertions(+), 126 deletions(-)
Signature · 1 line
2.33.0