函数逻辑报告 |
Source Code:fs\read_write.c |
Create Date:2022-07-29 10:31:33 |
Last Modify:2020-03-18 10:18:51 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Compare extents of two files to see if they are the same.* Caller must have locked both inodes to prevent write races.
函数原型:static int vfs_dedupe_file_range_compare(struct inode *src, loff_t srcoff, struct inode *dest, loff_t destoff, loff_t len, bool *is_same)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | src | |
loff_t | srcoff | |
struct inode * | dest | |
loff_t | destoff | |
loff_t | len | |
bool * | is_same |
1869 | same = true |
1880 | 如果是错误则 |
1885 | 如果是错误则 |
1888 | 转到:out_error |
1905 | src_addr等于kmap_atomic(src_page) |
1906 | dest_addr等于kmap_atomic(dest_page) |
1908 | flush_dcache_page(src_page) |
1909 | flush_dcache_page(dest_page) |
1914 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(dest_addr) |
1915 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(src_addr) |
1916 | unlock : |
1930 | 返回:0 |
1932 | out_error : |
1933 | 返回:error |
名称 | 描述 |
---|---|
generic_remap_file_range_prep | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |