bcachefs: Fix page state after fallocate
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 23 Nov 2021 23:21:09 +0000 (18:21 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:17 +0000 (17:09 -0400)
commitdcfc593f7b3a35e340f0cefa3281a3285ddb48e8
tree2ebf98f6aaa3458223107ef67f3f8c41ee886c69
parente6ec361f95fcbaffab65221cd4a56e0e10fdafc2
bcachefs: Fix page state after fallocate

This tweaks the fallocate code to also update the page cache to reflect
the new on disk reservations, giving us better i_sectors consistency.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fs-io.c