summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-01-05 17:47:11 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:52 -0700
commit8ab43fdb28b9afb92a0a6e5e9afa011acf179f4c (patch)
tree03192b027c149d6e8b994c50a1cc7e0ed80ba017 /include
parentc579fc72bbc704b86e2c669cf930ccafb62fc003 (diff)
vfs: explicitly pass the block size to the remap prep function
Make it so that filesystems can pass an explicit blocksize to the remap prep function. This enables filesystems whose fundamental allocation units are /not/ the same as the blocksize to ensure that the remapping checks are aligned properly. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index a38209fdf200..1dad867e8f53 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1992,6 +1992,11 @@ extern ssize_t vfs_copy_file_range(struct file *, loff_t , struct file *,
extern ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in,
struct file *file_out, loff_t pos_out,
size_t len, unsigned int flags);
+extern int __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
+ struct file *file_out, loff_t pos_out,
+ loff_t *count,
+ unsigned int remap_flags,
+ unsigned int block_size);
extern int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
struct file *file_out, loff_t pos_out,
loff_t *count,