Function report |
Source Code:fs\direct-io.c |
Create Date:2022-07-28 20:15:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:If we are not writing the entire block and get_block() allocated* the block for us, we need to fill-in the unused portion of the* block with zeros
Proto:static inline void dio_zero_block(struct dio *dio, struct dio_submit *sdio, int end, struct buffer_head *map_bh)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct dio * | dio | |
struct dio_submit * | sdio | |
int | end | |
struct buffer_head * | map_bh |
904 | dio_blocks_per_fs_block = 1 << When we're using an alignment whichis finer than the filesystem's softblocksize, this specifies how muchfiner. blkfactor=2 means 1/4-blockalignment. Does not change |
905 | this_chunk_blocks = Current offset into the underlyingfile in dio_block units. & dio_blocks_per_fs_block - 1 |
907 | If Not this_chunk_blocks Then Return |
914 | If end Then this_chunk_blocks = dio_blocks_per_fs_block - this_chunk_blocks |
Name | Describe |
---|---|
do_direct_IO | Walk the user pages, and the file, mapping blocks to disk and generating* a sequence of (page,offset,len,block) mappings. These mappings are injected* into submit_page_section(), which takes care of the next stage of submission |
do_blockdev_direct_IO | This is a library function for use by filesystem drivers |
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 |