Skip to content

btrfs: fix missing error handling when replaying directory entries

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: deal with errors when checking if a dir entry exists during log replayfs/btrfs/tree-log.c+29 -182 replies
2/4btrfs: deal with errors when replaying dir entry during log replayfs/btrfs/tree-log.c+8 -10 replies
3/4btrfs: deal with errors when adding inode reference during log replayfs/btrfs/tree-log.c+7 -20 replies
4/4btrfs: unify lookup return value when dir entry is missingfs/btrfs/ctree.h fs/btrfs/dir-item.c fs/btrfs/tree-log.c+42 -220 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] btrfs: fix missing error handling when replaying directory entries

From: Filipe Manana <[email protected]>

Some places during log replay are ignoring errors when looking up directory entries in a subvolume/fs tree. This fixes all those places and makes sure we get consistent error hanlding when looking dir items and dir index items.

Filipe Manana (4):
btrfs: deal with errors when checking if a dir entry exists during log replay
btrfs: deal with errors when replaying dir entry during log replay
btrfs: deal with errors when adding inode reference during log replay
btrfs: unify lookup return value when dir entry is missing

 fs/btrfs/ctree.h    |  2 +-
 fs/btrfs/dir-item.c | 48 +++++++++++++++++++++++++--------
 fs/btrfs/tree-log.c | 65 ++++++++++++++++++++++++++++-----------------
 3 files changed, 79 insertions(+), 36 deletions(-)
Signature · 1 line
2.33.0