]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: fsck: fix extent past end of inode repair
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 13 Jun 2025 22:58:57 +0000 (18:58 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 02:11:56 +0000 (22:11 -0400)
commit191334400d8031df367eb74b6ab49bc163f6f821
tree857b7c1cd0b6ef25188600b33c17602cbe679c7c
parentb17d7bdb128c50025fc3eb7a9e57b3c7caa4a5ac
bcachefs: fsck: fix extent past end of inode repair

Fix the case where we're deleting in a different snapshot and need to
emit a whiteout - that requires a regular BTREE_ITER_filter_snapshots
iterator.

Also, only delete the part of the extent that extents past i_size.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c