bcachefs: Fix bch2_extent_fallocate() in nocow mode
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 17 Mar 2023 14:56:44 +0000 (10:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commitabab7609de92c973bfa3ad069a622c0a107b6386
tree699235cb3fa6e053a3b7fe6d47a833c228a9ce03
parent711bf946d55d28336dcc4f87209c8b74e6279481
bcachefs: Fix bch2_extent_fallocate() in nocow mode

When we allocate disk space, we need to be incrementing the WRITE io
clock, which perhaps should be renamed to sectors allocated - copygc
uses this io clock to know when to run.

Also, we should be incrementing the same clock when allocating btree
nodes.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_interior.c
fs/bcachefs/io.c