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 within @page, starting at @lastoff.* Returns true if found and updates @lastoff to the offset in file.
Proto:static bool page_seek_hole_data(struct inode *inode, struct page *page, loff_t *lastoff, int whence)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| struct page * | page | |
| loff_t * | lastoff | |
| int | whence |
| 22 | bsize = i_blocksize(inode) |
| 23 | seek_data = whence == seek to the next data |
| 26 | If WARN_ON_ONCE( * lastoff >= poff + PAGE_SIZE) Then Return false |
| 34 | If whence == seek to the next hole Then Return true |
| 42 | If bsize == PAGE_SIZE || Not is_partially_uptodate Then Return PageUptodate(page) == seek_data |
| 46 | If Value for the false possibility is greater at compile time( See page-flags.h for PAGE_MAPPING_FLAGS != i_mapping) Then Go to out_unlock_not_found |
| 50 | If offset_in_page( * lastoff) >= off + bsize Then Continue |
| 52 | If is_partially_uptodate(page, off, bsize) == seek_data Then |
| 59 | out_unlock_not_found : |
| 61 | Return false |
| Name | Describe |
|---|---|
| page_cache_seek_hole_data | 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. |
| 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 |