diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-11 12:57:04 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:52 -0400 |
commit | a1f26d700aa51fc942ca07ee501b9117075c84e0 (patch) | |
tree | 49ee1f1dbc4d5877953f9d902565063fc1eeb8ec /fs/bcachefs/super.c | |
parent | 09d70d0be1d5670a9df24656c5e429ab4f239c16 (diff) | |
download | linux-stable-a1f26d700aa51fc942ca07ee501b9117075c84e0.tar.gz linux-stable-a1f26d700aa51fc942ca07ee501b9117075c84e0.tar.bz2 linux-stable-a1f26d700aa51fc942ca07ee501b9117075c84e0.zip |
bcachefs: Handle btree node rewrites before going RW
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index e142de2a5527..58517f6d128f 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -418,6 +418,7 @@ static int __bch2_fs_read_write(struct bch_fs *c, bool early) bch2_do_discards(c); bch2_do_invalidates(c); bch2_do_stripe_deletes(c); + bch2_do_pending_node_rewrites(c); return 0; err: __bch2_fs_read_only(c); @@ -446,6 +447,7 @@ static void __bch2_fs_free(struct bch_fs *c) for (i = 0; i < BCH_TIME_STAT_NR; i++) bch2_time_stats_exit(&c->times[i]); + bch2_free_pending_node_rewrites(c); bch2_fs_counters_exit(c); bch2_fs_snapshots_exit(c); bch2_fs_quota_exit(c); |