Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct file * | src_file | |
loff_t | src_pos | |
struct file * | dst_file | |
loff_t | dst_pos | |
loff_t | len | |
unsigned int | remap_flags |
2107 | ret = mnt_want_write_file(dst_file) |
2111 | ret = remap_verify_area(dst_file, dst_pos, len, true) |
2112 | If ret < 0 Then Go to out_drop_write |
2116 | If Not Check whether we are allowed to dedupe the destination file Then Go to out_drop_write |
2120 | If mnt != mnt Then Go to out_drop_write |
2124 | If S_ISDIR(i_mode) Then Go to out_drop_write |
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 |
2138 | out_drop_write : |
2139 | mnt_drop_write_file(dst_file) |
2141 | Return ret |
Name | Describe |
---|---|
vfs_dedupe_file_range |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |