bcachefs: Fix bch2_evict_subvolume_inodes()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 15 Mar 2023 15:53:51 +0000 (11:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commit9edbcc72f6987bbb58f113d04e7704b7a84106a6
treed083a4cf4801bc83fd222e156513dfdce62dd59a
parente1e7ecafe6482464ccc510afb38e1b9b306ce5dc
bcachefs: Fix bch2_evict_subvolume_inodes()

This fixes a bug in bch2_evict_subvolume_inodes(): d_mark_dontcache()
doesn't handle the case where i_count is already 0, we need to grab and
put the inode in order for it to be dropped.

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