btrfs: rework directory logging to make it more efficient
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | btrfs: remove root argument from btrfs_log_inode() and its calleesfs/ | +24 | 3 replies | |
| 2/5 | btrfs: remove redundant log root assignment from log_dir_items()fs/ | +0 | 0 replies | |
| 3/5 | btrfs: factor out the copying loop of dir items from log_dir_items()fs/ | +75 | 0 replies | |
| 4/5 | btrfs: insert items in batches when logging a directory when possiblefs/ | +180 | 0 replies | |
| 5/5 | btrfs: keep track of the last logged keys when logging a directoryfs/ fs/ fs/ +1 more | +75 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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