Skip to content

btrfs: fix log replay not persisting a 0 i_size

[email protected] linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix zero size inode with non-zero size after log replayfs/btrfs/tree-log.c+65 -330 replies
2/2btrfs: pass a btrfs inode to tree-log.c:fill_inode_item()fs/btrfs/tree-log.c+23 -250 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/2] btrfs: fix log replay not persisting a 0 i_size

From: Filipe Manana <[email protected]>

Fix an issue where if we fsync a file that got its size truncated to 0, we may end up not getting an i_size of 0 after log replay if new names for the file were also logged. Details in the change log of the first patch.

Filipe Manana (2):
btrfs: fix zero size inode with non-zero size after log replay
btrfs: pass a btrfs inode to tree-log.c:fill_inode_item()

 fs/btrfs/tree-log.c | 140 +++++++++++++++++++++++++++-----------------
 1 file changed, 85 insertions(+), 55 deletions(-)
Signature · 1 line
2.47.2