函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-29 10:31:34
Last Modify:2020-03-18 10:18:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_dedupe_file_range_one

函数原型: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)

返回类型:loff_t

参数:

类型参数名称
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  如果ret则返回:ret
2111  ret等于remap_verify_area(dst_file, dst_pos, len, true)
2112  如果ret小于0则转到:out_drop_write
2115  ret等于负EPERM
2116  如果非Check whether we are allowed to dedupe the destination file 则转到:out_drop_write
2119  ret等于负EXDEV
2120  如果mnt不等于mnt则转到:out_drop_write
2123  ret等于负EISDIR
2124  如果S_ISDIR(i_mode)则转到:out_drop_write
2127  ret等于负EINVAL
2128  如果非remap_file_range则转到:out_drop_write
2131  如果len恒等于0则
2132  ret等于0
2133  转到: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  返回:ret
调用者
名称描述
vfs_dedupe_file_range