btrfs: a fix for fsync and a few improvements to the full fsync path
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | btrfs: fix lost prealloc extents beyond eof after full fsyncfs/ | +31 | 4 replies | |
| 2/7 | btrfs: stop copying old file extents when doing a full fsyncfs/ fs/ | +148 | 0 replies | |
| 3/7 | btrfs: hold on to less memory when logging checksums during full fsyncfs/ | +12 | 0 replies | |
| 4/7 | btrfs: voluntarily relinquish cpu when doing a full fsyncfs/ | +7 | 0 replies | |
| 5/7 | btrfs: reset last_reflink_trans after fsyncing inodefs/ fs/ fs/ +2 more | +48 | 0 replies | |
| 6/7 | btrfs: fix unexpected error path when reflinking an inline extentfs/ | +5 | 0 replies | |
| 7/7 | btrfs: deal with unexpected extent type during reflinkingfs/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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