summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/fs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-15 11:53:51 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:57 -0400
commit9edbcc72f6987bbb58f113d04e7704b7a84106a6 (patch)
treed083a4cf4801bc83fd222e156513dfdce62dd59a /fs/bcachefs/fs.h
parente1e7ecafe6482464ccc510afb38e1b9b306ce5dc (diff)
downloadlinux-9edbcc72f6987bbb58f113d04e7704b7a84106a6.tar.gz
linux-9edbcc72f6987bbb58f113d04e7704b7a84106a6.tar.bz2
linux-9edbcc72f6987bbb58f113d04e7704b7a84106a6.zip
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>
Diffstat (limited to 'fs/bcachefs/fs.h')
-rw-r--r--fs/bcachefs/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.h b/fs/bcachefs/fs.h
index e1c73a38c607..2e63cb6603bd 100644
--- a/fs/bcachefs/fs.h
+++ b/fs/bcachefs/fs.h
@@ -13,6 +13,7 @@
struct bch_inode_info {
struct inode v;
+ struct list_head ei_vfs_inode_list;
unsigned long ei_flags;
struct mutex ei_update_lock;