diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-14 02:34:17 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:33 +0300 |
commit | 0e96f5dcd7ff678c5448f64cb957117399754d2e (patch) | |
tree | 5495d03dacf148994cc1be7722e8e7881808299c /fs/bcachefs/super.c | |
parent | a5d18f9ec0e2cfce1e0dc50f07d614ba21edaae9 (diff) | |
download | linux-0e96f5dcd7ff678c5448f64cb957117399754d2e.tar.xz |
bcachefs: Call bch2_do_invalidates() when going read write
Like bch2_do_discards(), we should check if this needs to be done when
going rw.
Also, add some sysfs code for debugging bucket invalidation.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index cc887a1b8c8f..b926fb1b14a9 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -383,6 +383,7 @@ static int __bch2_fs_read_write(struct bch_fs *c, bool early) bch2_recalc_capacity(c); bch2_do_discards(c); + bch2_do_invalidates(c); if (!early) { ret = bch2_fs_read_write_late(c); |