Skip to content

btrfs: a few performance improvements for fsync and rename/link

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: do not take the log_mutex of the subvolume when pinning the logfs/btrfs/tree-log.c+0 -21 reply
2/3btrfs: do not commit logs and transactions during link and rename operationsfs/btrfs/inode.c fs/btrfs/tree-log.c fs/btrfs/tree-log.h+60 -1692 replies
3/3btrfs: make fast fsyncs wait only for writebackfs/btrfs/btrfs_inode.h fs/btrfs/file.c fs/btrfs/ordered-data.c +5 more+276 -1053 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJosef Bacik
1/3R-b
2/3
3/3

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/3] btrfs: a few performance improvements for fsync and rename/link

From: Filipe Manana <[email protected]>

A small group of changes to improve performance of fsync, rename and link operations. They are farily independent, but patch 3 needs to be applied before patch 2, the order can be changed if needed.
Details and performance tests are mentioned in the change log of each patch.

Filipe Manana (3):
btrfs: do not take the log_mutex of the subvolume when pinning the log
btrfs: do not commit logs and transactions during link and rename
operations
btrfs: make fast fsyncs wait only for writeback

 fs/btrfs/btrfs_inode.h  |   5 +
 fs/btrfs/file.c         |  97 +++++++++-----
 fs/btrfs/inode.c        | 115 ++---------------
 fs/btrfs/ordered-data.c |  59 +++++++++
 fs/btrfs/ordered-data.h |  11 ++
 fs/btrfs/transaction.c  |  10 ++
 fs/btrfs/transaction.h  |   7 ++
 fs/btrfs/tree-log.c     | 272 +++++++++++++++++++++-------------------
 fs/btrfs/tree-log.h     |  32 +++--
 9 files changed, 334 insertions(+), 274 deletions(-)
Signature · 1 line
2.26.2