bcachefs: Call bch2_do_invalidates() when going read write
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 13 Jun 2022 23:34:17 +0000 (19:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:33 +0000 (17:09 -0400)
commit0e96f5dcd7ff678c5448f64cb957117399754d2e
tree5495d03dacf148994cc1be7722e8e7881808299c
parenta5d18f9ec0e2cfce1e0dc50f07d614ba21edaae9
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>
fs/bcachefs/super.c
fs/bcachefs/sysfs.c