Function report |
Source Code:fs\iomap\seek.c |
Create Date:2022-07-28 20:32:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Seek for SEEK_DATA / SEEK_HOLE in the page cache.* Within unwritten extents, the page cache determines which parts are holes* and which are data: uptodate buffer heads count as data; everything else* counts as a hole.
Proto:static loff_t page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length, int whence)
Type:loff_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| loff_t | offset | |
| loff_t | length | |
| int | whence |
| 78 | end = DIV_ROUND_UP(offset + length, PAGE_SIZE) |
| 85 | pagevec_init( & pvec) |
| 87 | Do |
| 92 | If nr_pages == 0 Then Break |
| 102 | pagevec_release( & pvec) |
| 106 | If whence != seek to the next hole Then Go to not_found |
| 109 | check_range : |
| 112 | not_found : |
| 114 | out : |
| 115 | pagevec_release( & pvec) |
| 116 | Return lastoff |
| Name | Describe |
|---|---|
| iomap_seek_hole_actor | |
| iomap_seek_data_actor |
| 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 |