bcachefs: bch2_extent_fallocate()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 13 Nov 2022 23:54:37 +0000 (18:54 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:51 +0000 (17:09 -0400)
commit70de7a47e2c56adbd76c24c80e95cf2203a9e74f
tree1c04941412ef562c56d415b3c1a6226620e6f532
parent9bcbc0307d9cbaae5836a8051c91b468fe1571c9
bcachefs: bch2_extent_fallocate()

This factors out part of __bchfs_fallocate() in fs-io.c into an new,
lower level io.c helper, which creates a single extent reservation.

This is prep work for nocow support - the new helper will shortly gain
the ability to create unwritten extents.

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