Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:31
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vfs_dedupe_file_range_one

Proto:loff_t vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos, struct file *dst_file, loff_t dst_pos, loff_t len, unsigned int remap_flags)

Type:loff_t

Parameter:

TypeParameterName
struct file *src_file
loff_tsrc_pos
struct file *dst_file
loff_tdst_pos
loff_tlen
unsigned intremap_flags
2104  WARN_ON_ONCE(remap_flags & ~(These flags control the behavior of the remap_file_range function pointer.* If it is called with len == 0 that means "remap to end of source file".* See Documentation/filesystems/vfs.rst for more details about this call. | REMAP_FILE_CAN_SHORTEN))
2107  ret = mnt_want_write_file(dst_file)
2108  If ret Then Return ret
2111  ret = remap_verify_area(dst_file, dst_pos, len, true)
2112  If ret < 0 Then Go to out_drop_write
2115  ret = -EPERM
2116  If Not Check whether we are allowed to dedupe the destination file Then Go to out_drop_write
2119  ret = -EXDEV
2120  If mnt != mnt Then Go to out_drop_write
2123  ret = -EISDIR
2124  If S_ISDIR(i_mode) Then Go to out_drop_write
2127  ret = -EINVAL
2128  If Not remap_file_range Then Go to out_drop_write
2131  If len == 0 Then
2132  ret = 0
2133  Go to out_drop_write
2136  ret = remap_file_range(src_file, src_pos, dst_file, dst_pos, len, remap_flags | These flags control the behavior of the remap_file_range function pointer.* If it is called with len == 0 that means "remap to end of source file".* See Documentation/filesystems/vfs.rst for more details about this call.)
2138  out_drop_write :
2139  mnt_drop_write_file(dst_file)
2141  Return ret
Caller
NameDescribe
vfs_dedupe_file_range