bcachefs: Fix check_inode_update_hardlinks()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 30 Sep 2021 15:09:26 +0000 (11:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:13 +0000 (17:09 -0400)
commitea0531f84eec65a1204a13167965bc151e0f072c
tree2125ef289735ed2c5bca39bfed101a42a09fd33c
parent0476fa948e6fac0b7fa04b5bb0ed30631cbf50ea
bcachefs: Fix check_inode_update_hardlinks()

We were incorrectly using bch2_inode_write(), which gets the snapshot ID
from the iterator, with a BTREE_ITER_ALL_SNAPSHOTS iterator -
fortunately caught by an assertion in the update path.

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