diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:16:14 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:08:13 -0800 |
commit | ba8a2b3ae5bee337bc0a539a8aa0e6f939e97950 (patch) | |
tree | 539e457d372c486eaf3155889242f5cae5b8ac1e /include | |
parent | de2a6d503468d289579eacf1a8ba9399e0e6604c (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 607c283bef9f..209528657b46 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2209,7 +2209,8 @@ extern ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, int __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *len, unsigned int remap_flags, - const struct iomap_ops *dax_read_ops); + const struct iomap_ops *dax_read_ops, + unsigned int block_size); 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); |