diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-10 18:05:17 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:12 -0400 |
commit | 1809b8cba756d32bd6e976ed4ee64efdf66c6d94 (patch) | |
tree | f25287cf7f337aa8b8a093a91e0478a909833b8c /fs/bcachefs/io_misc.h | |
parent | cbf57db53f311b09de2c17b514e104d421d72871 (diff) | |
download | linux-1809b8cba756d32bd6e976ed4ee64efdf66c6d94.tar.gz linux-1809b8cba756d32bd6e976ed4ee64efdf66c6d94.tar.bz2 linux-1809b8cba756d32bd6e976ed4ee64efdf66c6d94.zip |
bcachefs: Break up io.c
More reorganization, this splits up io.c into
- io_read.c
- io_misc.c - fallocate, fpunch, truncate
- io_write.c
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/bcachefs/io_misc.h b/fs/bcachefs/io_misc.h new file mode 100644 index 000000000000..46e9ce3251d6 --- /dev/null +++ b/fs/bcachefs/io_misc.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _BCACHEFS_IO_MISC_H +#define _BCACHEFS_IO_MISC_H + +int bch2_extent_fallocate(struct btree_trans *, subvol_inum, struct btree_iter *, + unsigned, struct bch_io_opts, s64 *, + struct write_point_specifier); +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 *); + +#endif /* _BCACHEFS_IO_MISC_H */ |