summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2021-08-31 17:30:33 +0300
committerDavid Sterba <dsterba@suse.com>2021-10-26 20:08:00 +0300
commitc48792c6ee7a9f24d9b19ec15866f1ea26fd0783 (patch)
treedf1e407caf02e6272737170f064f6eb926570536 /ipc
parent289cffcb0399a4136a8f1ea206b679e9c42e5a64 (diff)
downloadlinux-c48792c6ee7a9f24d9b19ec15866f1ea26fd0783.tar.xz
btrfs: do not log new dentries when logging that a new name exists
When logging a new name for an inode, due to a link or rename operation, we don't need to log all new dentries of the parent directories and their subdirectories. We only want to log the names of the inode and that any new parent directories exist. So in this case don't trigger logging of the new dentries, that is only need when doing an explicit fsync on a directory or on a file which requires logging its parent directories. This avoids unnecessary work and reduces contention on the extent buffers of a log tree. This patch is part of a patch set comprised of the following patches: 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 This is patch 3/10 and test results are listed in the change log of the last patch in the set. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions