bcachefs: Kill snapshot arg to fsck_write_inode()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 30 Sep 2024 04:00:33 +0000 (00:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 5 Oct 2024 00:25:32 +0000 (20:25 -0400)
commit72350ee0ea22c053f2683e50f1beba97df2ad053
tree19e834f7638161214ab1baf522223f1421ec37bf
parentc9306a91c3fdc9915f5408561ea432c70b03383b
bcachefs: Kill snapshot arg to fsck_write_inode()

It was initially believed that it would be better to be explicit about
the snapshot we're updating when writing inodes in fsck; however, it
turns out that passing around the snapshot separately is more error
prone and we're usually updating the inode in the same snapshow we read
it from.

This is different from normal filesystem paths, where we do the update
in the snapshot of the subvolume we're in.

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