Skip to content

Free space tree space reservation fixes

Josef Bacik linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Free space tree space reservation fixes

Hello,

Filipe reported a problem where he was getting an ENOSPC abort when running delayed refs for generic/619. This is because of two reasons, first generic/619 creates a very small file system, and our global block rsv calculation doesn't take into account the size of the free space tree. Thus we could get into a situation where the global block rsv was not enough to handle the overflow.

The second is because we simply do not reserve space for the free space tree modifications. Fix this by making sure any free space tree root has their block rsv set to the delayed refs rsv, and then make sure if we have the free space tree enabled we're reserving extra space for those operations.

With these patches the problem Filipe was hitting went away. Thanks,

Josef

Josef Bacik (2):
btrfs: include the free space tree in the global rsv minimum
calculation
btrfs: reserve extra space for the free space tree

 fs/btrfs/block-rsv.c   | 31 ++++++++++++++++++-------------
 fs/btrfs/delayed-ref.c | 22 ++++++++++++++++++++++
 2 files changed, 40 insertions(+), 13 deletions(-)
Signature · 1 line
2.26.3