Skip to content

btrfs: Fix no_space on dd and rm loop

Zhaolei linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 6 repliesIn review
  2. v19 patches 1 replySuperseded

Changes in v2 from the cover letter

1: Rebased on top of v4.0-rc7
2: Fixed a lock problem reported by:
'Tsutomu Itoh' <[email protected]>
3: Add Reviewed-by: Liu Bo <[email protected]>
to [PATCH 2/9] btrfs:

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9btrfs: fix condition of commit transactionfs/btrfs/extent-tree.c+13 -70 replies
2/9btrfs: Fix tail space processing in find_free_dev_extent()fs/btrfs/volumes.c+13 -110 replies
3/9btrfs: Adjust commit-transaction condition to avoid NO_SPACE morefs/btrfs/extent-tree.c+2 -10 replies
4/9btrfs: Set relative data on clear btrfs_block_group_cache->pinnedfs/btrfs/extent-tree.c+10 -00 replies
5/9btrfs: add WARN_ON() to check is space_info op currentfs/btrfs/extent-tree.c+10 -00 replies
6/9btrfs: Fix NO_SPACE bug caused by delayed-iputfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/extent-tree.c +1 more+13 -14 replies
7/9btrfs: Support busy loop of write and deletefs/btrfs/extent-tree.c+13 -110 replies
8/9btrfs: wait for delayed iputs on no spacefs/btrfs/extent-tree.c+3 -02 replies
9/9btrfs: cleanup unused alloc_chunk variblefs/btrfs/extent-tree.c+2 -20 replies

Reviews trailers per patch

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

PatchLiu Bo
1/9
2/9R-b
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/9] btrfs: Fix no_space on dd and rm loop

From: Zhao Lei <[email protected]>

This is v2 of resend-fix-no-space.

Most of them are send in single patch, I resend them in patchset to make it easy to access.

Notice that "Btrfs: fix find_free_dev_extent() malfunction in case device tree has hole" from Forrest Liu in:
https://patchwork.kernel.org/patch/5800231/
is also need to fix all known no_space bug.

Changelog v1->v2:
1: Rebased on top of v4.0-rc7
2: Fixed a lock problem reported by:
'Tsutomu Itoh' <[email protected]>
3: Add Reviewed-by: Liu Bo <[email protected]>
to [PATCH 2/9] btrfs:

Tested by busy dd and rm loop script in 2000 times. I'll add xfstests for this case later.

This is available at fix_no_space branch on my tree:
git://github.com/zhaoleidd/btrfs.git
It is also included in integration-for-chris branch in above tree.

Thanks
Zhaolei

Zhao Lei (9):
btrfs: fix condition of commit transaction
btrfs: Fix tail space processing in find_free_dev_extent()
btrfs: Adjust commit-transaction condition to avoid NO_SPACE more
btrfs: Set relative data on clear btrfs_block_group_cache->pinned
btrfs: add WARN_ON() to check is space_info op current
btrfs: Fix NO_SPACE bug caused by delayed-iput
btrfs: Support busy loop of write and delete
btrfs: wait for delayed iputs on no space
btrfs: cleanup unused alloc_chunk varible

 fs/btrfs/ctree.h       |  1 +
 fs/btrfs/disk-io.c     |  3 ++-
 fs/btrfs/extent-tree.c | 66 +++++++++++++++++++++++++++++++++++++++-----------
 fs/btrfs/inode.c       |  4 +++
 fs/btrfs/volumes.c     | 24 +++++++++---------
 5 files changed, 72 insertions(+), 26 deletions(-)
Signature · 1 line
1.8.5.1