Function report | 
Source Code:fs\ioctl.c | 
Create Date:2022-07-28 20:06:21 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__generic_block_fiemap - FIEMAP for block based inodes (no locking)*@inode: the inode to map*@fieinfo: the fiemap info struct that will be passed back to userspace*@start: where to start mapping in the inode*@len: how much space to map*@get_block: the
Proto:int __generic_block_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, loff_t start, loff_t len, get_block_t *get_block)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct fiemap_extent_info * | fieinfo | |
| loff_t | start | |
| loff_t | len | |
| get_block_t * | get_block | 
| 299 | bool past_eof = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., whole_file = false | 
| 300 | ret = 0 | 
| 312 | whole_file = true | 
| 320 | If logical_to_blk(inode, len) == 0 Then len = blk_to_logical(inode, 1) | 
| 323 | start_blk = logical_to_blk(inode, start) | 
| 324 | last_blk = logical_to_blk(inode, start + len - 1) | 
| 326 | Do | 
| 331 | memset( & map_bh, 0, sizeof(structbuffer_head)) | 
| 332 | size of mapping = len | 
| 335 | If ret Then Break | 
| 339 | If Not buffer_mapped( & map_bh) Then | 
| 340 | start_blk++ | 
| 362 | Else if size Then | 
| 371 | Else | 
| 387 | If start_blk > last_blk && Not whole_file Then | 
| 398 | If size Then | 
| 406 | logical = blk_to_logical(inode, start_blk) | 
| 407 | phys = blk_to_logical(inode, start block number ) | 
| 408 | size = size of mapping | 
| 411 | start_blk += logical_to_blk(inode, size) | 
| 421 | cond_resched() | 
| 422 | If fatal_signal_pending(current process) Then | 
| 427 | When 1 cycle | 
| 433 | Return ret | 
| Name | Describe | 
|---|---|
| generic_block_fiemap | generic_block_fiemap - FIEMAP for block based inodes*@inode: The inode to map*@fieinfo: The mapping information*@start: The initial block to map*@len: The length of the extect to attempt to map*@get_block: The block mapping function for the fs* Calls | 
| 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  |