Fixes for snapshots + unlink
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | bcachefs: Split out check_unreachable_inodes() passfs/ fs/ fs/ | +67 | 0 replies | |
| 2/5 | bcachefs: reattach_inode() now correctly handles interior snapshot nodesfs/ fs/ | +158 | 0 replies | |
| 3/5 | bcachefs: btree_iter_peek_upto() now handles BTREE_ITER_all_snapshotsfs/ | +3 | 0 replies | |
| 4/5 | bcachefs: Delete vestigal check_inode() checksfs/ | +5 | 0 replies | |
| 5/5 | bcachefs: bcachefs_metadata_version_inode_has_child_snapshotsfs/ fs/ fs/ +6 more | +261 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Fixes for snapshots + unlink
The handling of unlinked files with snapshots was a bit fubar - especially if an unlinked file was then reattached in a newer snapshot. This adds an inode flag so that we can track when an inode should, or should not be deleted due to snapshots, when a newer snapshot still refers to data in an unlinked file.
Kent Overstreet (5):
bcachefs: Split out check_unreachable_inodes() pass
bcachefs: reattach_inode() now correctly handles interior snapshot
nodes
bcachefs: btree_iter_peek_upto() now handles BTREE_ITER_all_snapshots
bcachefs: Delete vestigal check_inode() checks
bcachefs: bcachefs_metadata_version_inode_has_child_snapshots
fs/bcachefs/bcachefs_format.h | 3 +- fs/bcachefs/btree_iter.c | 6 +- fs/bcachefs/btree_iter.h | 8 + fs/bcachefs/fs.c | 21 +- fs/bcachefs/fs.h | 9 +- fs/bcachefs/fsck.c | 377 +++++++++++++++++----------- fs/bcachefs/fsck.h | 1 + fs/bcachefs/inode.c | 233 ++++++++++++++--- fs/bcachefs/inode.h | 10 + fs/bcachefs/inode_format.h | 3 +- fs/bcachefs/recovery_passes_types.h | 1 + fs/bcachefs/sb-downgrade.c | 5 +- fs/bcachefs/sb-errors_format.h | 4 +- 13 files changed, 482 insertions(+), 199 deletions(-)
Signature · 1 line
2.45.2