diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 6c0b4a1c22ff..897eae8faee1 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1828,8 +1828,10 @@ extern ssize_t vfs_copy_file_range(struct file *, loff_t , struct file *, | |||
1828 | extern int vfs_clone_file_prep_inodes(struct inode *inode_in, loff_t pos_in, | 1828 | extern int vfs_clone_file_prep_inodes(struct inode *inode_in, loff_t pos_in, |
1829 | struct inode *inode_out, loff_t pos_out, | 1829 | struct inode *inode_out, loff_t pos_out, |
1830 | u64 *len, bool is_dedupe); | 1830 | u64 *len, bool is_dedupe); |
1831 | extern int do_clone_file_range(struct file *file_in, loff_t pos_in, | ||
1832 | struct file *file_out, loff_t pos_out, u64 len); | ||
1831 | extern int vfs_clone_file_range(struct file *file_in, loff_t pos_in, | 1833 | extern int vfs_clone_file_range(struct file *file_in, loff_t pos_in, |
1832 | struct file *file_out, loff_t pos_out, u64 len); | 1834 | struct file *file_out, loff_t pos_out, u64 len); |
1833 | extern int vfs_dedupe_file_range_compare(struct inode *src, loff_t srcoff, | 1835 | extern int vfs_dedupe_file_range_compare(struct inode *src, loff_t srcoff, |
1834 | struct inode *dest, loff_t destoff, | 1836 | struct inode *dest, loff_t destoff, |
1835 | loff_t len, bool *is_same); | 1837 | loff_t len, bool *is_same); |
@@ -2773,19 +2775,6 @@ static inline void file_end_write(struct file *file) | |||
2773 | __sb_end_write(file_inode(file)->i_sb, SB_FREEZE_WRITE); | 2775 | __sb_end_write(file_inode(file)->i_sb, SB_FREEZE_WRITE); |
2774 | } | 2776 | } |
2775 | 2777 | ||
2776 | static inline int do_clone_file_range(struct file *file_in, loff_t pos_in, | ||
2777 | struct file *file_out, loff_t pos_out, | ||
2778 | u64 len) | ||
2779 | { | ||
2780 | int ret; | ||
2781 | |||
2782 | file_start_write(file_out); | ||
2783 | ret = vfs_clone_file_range(file_in, pos_in, file_out, pos_out, len); | ||
2784 | file_end_write(file_out); | ||
2785 | |||
2786 | return ret; | ||
2787 | } | ||
2788 | |||
2789 | /* | 2778 | /* |
2790 | * get_write_access() gets write permission for a file. | 2779 | * get_write_access() gets write permission for a file. |
2791 | * put_write_access() releases this write permission. | 2780 | * put_write_access() releases this write permission. |