Skip to content

btrfs: set of small optimizations for inode logging

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10btrfs: check if a log tree exists at inode_logged()fs/btrfs/tree-log.c+3 -00 replies
2/10btrfs: remove no longer needed checks for NULL log contextfs/btrfs/tree-log.c+7 -130 replies
3/10btrfs: do not log new dentries when logging that a new name existsfs/btrfs/tree-log.c+8 -00 replies
4/10btrfs: always update the logged transaction when logging new namesfs/btrfs/tree-log.c+34 -390 replies
5/10btrfs: avoid expensive search when dropping inode items from logfs/btrfs/tree-log.c+13 -90 replies
6/10btrfs: add helper to truncate inode items when logging inodefs/btrfs/tree-log.c+19 -130 replies
7/10btrfs: avoid expensive search when truncating inode items from the logfs/btrfs/tree-log.c+3 -10 replies
8/10btrfs: avoid search for logged i_size when logging inode if possiblefs/btrfs/tree-log.c+1 -10 replies
9/10btrfs: avoid attempt to drop extents when logging inode for the first timefs/btrfs/tree-log.c+19 -80 replies
10/10btrfs: do not commit delayed inode when logging a file in full sync modefs/btrfs/tree-log.c+5 -160 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] btrfs: set of small optimizations for inode logging

From: Filipe Manana <[email protected]>

The following patchset adds a few optimizations for inode logging, along with some necessary refactorings/cleanups to be able to implement them. Test results are in the change log of the last patch.

Filipe Manana (10):
btrfs: check if a log tree exists at inode_logged()
btrfs: remove no longer needed checks for NULL log context
btrfs: do not log new dentries when logging that a new name exists
btrfs: always update the logged transaction when logging new names
btrfs: avoid expensive search when dropping inode items from log
btrfs: add helper to truncate inode items when logging inode
btrfs: avoid expensive search when truncating inode items from the log
btrfs: avoid search for logged i_size when logging inode if possible
btrfs: avoid attempt to drop extents when logging inode for the first time
btrfs: do not commit delayed inode when logging a file in full sync mode

 fs/btrfs/tree-log.c | 208 +++++++++++++++++++++++---------------------
 1 file changed, 110 insertions(+), 98 deletions(-)
Signature · 1 line
2.28.0