diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-30 15:40:38 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-30 15:40:38 -0400 |
commit | e7acf15b702df37aa3571cc28a8f2dd39b80b20d (patch) | |
tree | 4d72f794497d490c98afc32fdb22a8676a2d2bcc /fs/bcachefs/fs.c | |
parent | 2f1171b09647142da831c47675b419da3fdf4707 (diff) |
pop assert when freeing page after bcachefs shutdownbcachefs-put-folio-assert
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fs.c')
-rw-r--r-- | fs/bcachefs/fs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index f1472e9135cc..b6ba6f6c7005 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -45,6 +45,8 @@ #include <linux/string.h> #include <linux/xattr.h> +extern int bcachefs_shutdown; + static struct kmem_cache *bch2_inode_cache; static void bch2_vfs_inode_init(struct btree_trans *, subvol_inum, @@ -2380,6 +2382,7 @@ static void bch2_put_super(struct super_block *sb) { struct bch_fs *c = sb->s_fs_info; + bcachefs_shutdown = 1; __bch2_fs_stop(c); } @@ -2610,6 +2613,8 @@ err: * userspace as that causes util-linux to retry the mount RO - which is * confusing: */ + + bcachefs_shutdown = 0; if (bch2_err_matches(ret, EROFS) && ret != -EROFS) ret = -EIO; return bch2_err_class(ret); |