bcachefs: New io_misc.c helpers
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 4 Sep 2023 09:38:30 +0000 (05:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:12 +0000 (17:10 -0400)
commit5902cc283c060f0a006ee9b2f2a64855a09399b4
treec7d2e909fa088255d845fe205394397581ed4bb3
parent1809b8cba756d32bd6e976ed4ee64efdf66c6d94
bcachefs: New io_misc.c helpers

This pulls the non vfs specific parts of truncate and finsert/fcollapse
out of fs-io.c, and moves them to io_misc.c.

This is prep work for logging these operations, to make them atomic in
the event of a crash.

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