Skip to content

btrfs: minor bs != ps cases fixes for free space tree enforcing

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: only enforce free space tree if v1 cache is required for bs < ps casesfs/btrfs/super.c+5 -70 replies
2/2btrfs: forcing free space tree for bs > ps casesfs/btrfs/super.c+1 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFilipe Manana
SeriesR-b
1/2
2/2

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/2] btrfs: minor bs != ps cases fixes for free space tree enforcing

I'm update btrfs/131 to remove the v1 cache usage since v1 cache is already marked deprecated.

With that update, I can run the test on bs < ps and bs > ps cases, the formal failed due to the following reason:

- Free space cache is always enforced for bs < ps case Even if 'nospace_cache' mount option is provided. This is fixed by the first patch

And during tests I also exposed a minor problem for bs > ps cases:

- v1 cache mount is rejected for bs > ps cases
That's because we lack the automatic free space tree enforcing for bs > ps cases.
This is fixed by the second patch.

Qu Wenruo (2):
btrfs: only enforce free space tree if v1 cache is required for bs <
ps cases
btrfs: forcing free space tree for bs > ps cases

 fs/btrfs/super.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
Signature · 1 line
2.52.0