Skip to content

btrfs: fix enospc and transaction aborts during fallocate

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: fix metadata reservation for fallocate that leads to transaction abortsfs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/inode.c +1 more+91 -321 reply
2/5btrfs: remove item_size member of struct btrfs_clone_extent_infofs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/inode.c +1 more+4 -51 reply
3/5btrfs: rename struct btrfs_clone_extent_info to a more generic namefs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/inode.c +1 more+54 -501 reply
4/5btrfs: rename btrfs_punch_hole_range() to a more generic namefs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/inode.c +1 more+6 -61 reply
5/5btrfs: rename btrfs_insert_clone_extent() to a more generic namefs/btrfs/file.c+3 -31 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

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

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/5] btrfs: fix enospc and transaction aborts during fallocate

From: Filipe Manana <[email protected]>

When attempting to fallocate on a large file range with many file extent items, the operation can fail with ENOSPC when it shouldn't and, more critical, abort the transaction and turn the filesystem to RO mode.

First patch fixes the issue, the remaining just do some cleanups after it.

Filipe Manana (5):
btrfs: fix metadata reservation for fallocate that leads to
transaction aborts
btrfs: remove item_size member of struct btrfs_clone_extent_info
btrfs: rename struct btrfs_clone_extent_info to a more generic name
btrfs: rename btrfs_punch_hole_range() to a more generic name
btrfs: rename btrfs_insert_clone_extent() to a more generic name

 fs/btrfs/ctree.h   |  28 +++++++++--
 fs/btrfs/file.c    | 119 ++++++++++++++++++++++++++-------------------
 fs/btrfs/inode.c   |  67 ++++++++++++++++---------
 fs/btrfs/reflink.c |   8 +--
 4 files changed, 142 insertions(+), 80 deletions(-)
Signature · 1 line
2.26.2