diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-04 05:38:30 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:12 -0400 |
commit | 5902cc283c060f0a006ee9b2f2a64855a09399b4 (patch) | |
tree | c7d2e909fa088255d845fe205394397581ed4bb3 /fs/bcachefs/io_misc.h | |
parent | 1809b8cba756d32bd6e976ed4ee64efdf66c6d94 (diff) | |
download | lwn-5902cc283c060f0a006ee9b2f2a64855a09399b4.tar.gz lwn-5902cc283c060f0a006ee9b2f2a64855a09399b4.zip |
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>
Diffstat (limited to 'fs/bcachefs/io_misc.h')
-rw-r--r-- | fs/bcachefs/io_misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/io_misc.h b/fs/bcachefs/io_misc.h index 46e9ce3251d6..894a7a04ba4b 100644 --- a/fs/bcachefs/io_misc.h +++ b/fs/bcachefs/io_misc.h @@ -9,4 +9,7 @@ int bch2_fpunch_at(struct btree_trans *, struct btree_iter *, subvol_inum, u64, s64 *); int bch2_fpunch(struct bch_fs *c, subvol_inum, u64, u64, s64 *); +int bch2_truncate(struct bch_fs *, subvol_inum, u64, u64 *); +int bch2_fcollapse_finsert(struct bch_fs *, subvol_inum, u64, u64, bool, s64 *); + #endif /* _BCACHEFS_IO_MISC_H */ |