Function report |
Source Code:fs\read_write.c |
Create Date:2022-07-28 20:01:30 |
Last Modify:2020-03-18 10:18:51 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check that the two inodes are eligible for cloning, the ranges make* sense, and then flush all dirty data. Caller must ensure that the* inodes have been locked against any other modifications.
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file_in | |
loff_t | pos_in | |
struct file * | file_out | |
loff_t | pos_out | |
loff_t * | len | |
unsigned int | remap_flags |
1948 | inode_in = file_inode(file_in) |
1949 | inode_out = file_inode(file_out) |
1950 | same_inode = inode_in == inode_out |
1954 | If IS_IMMUTABLE(inode_out) Then Return -EPERM |
1957 | If IS_SWAPFILE(inode_in) || IS_SWAPFILE(inode_out) Then Return -ETXTBSY |
1967 | If len == 0 Then |
1975 | If len == 0 Then Return 0 |
1986 | inode_dio_wait(inode_in) |
1987 | If Not same_inode Then inode_dio_wait(inode_out) |
2004 | bool is_same = false |
2023 | Return ret |
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 |