Skip to content

btrfs: a fix for fsync and a few improvements to the full fsync path

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs: fix lost prealloc extents beyond eof after full fsyncfs/btrfs/tree-log.c+31 -124 replies
2/7btrfs: stop copying old file extents when doing a full fsyncfs/btrfs/reflink.c fs/btrfs/tree-log.c+148 -730 replies
3/7btrfs: hold on to less memory when logging checksums during full fsyncfs/btrfs/tree-log.c+12 -170 replies
4/7btrfs: voluntarily relinquish cpu when doing a full fsyncfs/btrfs/tree-log.c+7 -00 replies
5/7btrfs: reset last_reflink_trans after fsyncing inodefs/btrfs/btrfs_inode.h fs/btrfs/file.c fs/btrfs/inode.c +2 more+48 -140 replies
6/7btrfs: fix unexpected error path when reflinking an inline extentfs/btrfs/reflink.c+5 -20 replies
7/7btrfs: deal with unexpected extent type during reflinkingfs/btrfs/reflink.c+4 -20 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/7] btrfs: a fix for fsync and a few improvements to the full fsync path

From: Filipe Manana <[email protected]>

This fixes a bug (first patch) with preallocated extents beyond eof being lost after a full fsync and a power failure. The rest is mostly some improvements to the full fsync code path (less IO, use less memory for logging checksums, etc), and silence smatch about a possible dereference of an uninitialized pointer. More details in the changelogs.

Filipe Manana (7):
btrfs: fix lost prealloc extents beyond eof after full fsync
btrfs: stop copying old file extents when doing a full fsync
btrfs: hold on to less memory when logging checksums during full fsync
btrfs: voluntarily relinquish cpu when doing a full fsync
btrfs: reset last_reflink_trans after fsyncing inode
btrfs: fix unexpected error path when reflinking an inline extent
btrfs: deal with unexpected extent type during reflinking

 fs/btrfs/btrfs_inode.h |  30 +++++
 fs/btrfs/file.c        |   7 +-
 fs/btrfs/inode.c       |  12 +-
 fs/btrfs/reflink.c     |  39 +++---
 fs/btrfs/tree-log.c    | 285 +++++++++++++++++++++++++++--------------
 5 files changed, 254 insertions(+), 119 deletions(-)
Signature · 1 line
2.33.0