Skip to content

btrfs: some directory fixes for stable 5.15

[email protected] linux-btrfs stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: fix infinite directory readsfs/btrfs/ctree.h fs/btrfs/delayed-inode.c fs/btrfs/delayed-inode.h +1 more+84 -541 reply
2/4btrfs: set last dir index to the current last index when opening dirfs/btrfs/inode.c+2 -11 reply
3/4btrfs: refresh dir last index during a rewinddir(3) callfs/btrfs/inode.c+14 -11 reply
4/4btrfs: fix race between reading a directory and adding entries to itfs/btrfs/inode.c+7 -41 reply

Reviews trailers per patch

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

PatchDavid SterbaEugeniu Rosca
1/4R-b
2/4R-b
3/4R-b
4/4R-b R-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/4 for 5.15 stable] btrfs: some directory fixes for stable 5.15

From: Filipe Manana <[email protected]>

Here follows the backport of some directory related fixes for the stable 5.15 tree. I tested these on top of 5.15.147.

These were recently requested at:

https://lore.kernel.org/linux-btrfs/20240124225522.GA2614102@lxhi-087/

Filipe Manana (4):
btrfs: fix infinite directory reads
btrfs: set last dir index to the current last index when opening dir
btrfs: refresh dir last index during a rewinddir(3) call
btrfs: fix race between reading a directory and adding entries to it

 fs/btrfs/ctree.h         |   1 +
 fs/btrfs/delayed-inode.c |   5 +-
 fs/btrfs/delayed-inode.h |   1 +
 fs/btrfs/inode.c         | 150 +++++++++++++++++++++++++--------------
 4 files changed, 102 insertions(+), 55 deletions(-)
Signature · 1 line
2.40.1