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:Compare extents of two files to see if they are the same.* Caller must have locked both inodes to prevent write races.
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | src | |
loff_t | srcoff | |
struct inode * | dest | |
loff_t | destoff | |
loff_t | len | |
bool * | is_same |
1869 | same = true |
1873 | cmp_len = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(PAGE_SIZE - src_poff, PAGE_SIZE - dest_poff) |
1875 | cmp_len = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(cmp_len, len) |
1888 | Go to out_error |
1898 | If Not PageUptodate(src_page) || Not PageUptodate(dest_page) || See page-flags.h for PAGE_MAPPING_FLAGS != i_mapping || See page-flags.h for PAGE_MAPPING_FLAGS != i_mapping Then |
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 : |
1921 | If Not same Then Break |
1930 | Return 0 |
1932 | out_error : |
1933 | Return error |
Name | Describe |
---|---|
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. |
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 |