diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-15 16:53:51 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:57 +0200 |
commit | 9edbcc72f6987bbb58f113d04e7704b7a84106a6 (patch) | |
tree | d083a4cf4801bc83fd222e156513dfdce62dd59a /fs/bcachefs/inode.c | |
parent | bcachefs: Improve error handling in bch2_ioctl_subvolume_destroy() (diff) | |
download | linux-9edbcc72f6987bbb58f113d04e7704b7a84106a6.tar.xz 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/inode.c')
-rw-r--r-- | fs/bcachefs/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index 560545a7ea03..7ccbc00b7156 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -803,9 +803,6 @@ retry: bch2_inode_unpack(k, &inode_u); - /* Subvolume root? */ - BUG_ON(inode_u.bi_subvol); - bkey_inode_generation_init(&delete.k_i); delete.k.p = iter.pos; delete.v.bi_generation = cpu_to_le32(inode_u.bi_generation + 1); |