bcachefs: Fallocate now checks page cache
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 10 Jul 2023 02:28:08 +0000 (22:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:07 +0000 (17:10 -0400)
commita09818c7e78633ee8a6d147ea5bf074d60ea66cd
tree1ae1b2802c083a645f766d45b05d13a62307b52a
parentea28c86722954a58e3bab24eec3e7624e8d4956b
bcachefs: Fallocate now checks page cache

Previously, fallocate would only check the state of the extents btree
when determining if we need to create a reservation.

But the page cache might already have dirty data or a disk reservation.
This changes __bchfs_fallocate() to call bch2_seek_pagecache_hole() to
check for this.

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