Function report |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-28 20:31:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iomap_readpage_actor
Proto:static loff_t iomap_readpage_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)
Type:loff_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
loff_t | pos | |
loff_t | length | |
void * | data | |
struct iomap * | iomap | |
struct iomap * | srcmap |
256 | iop = iomap_page_create(inode, page) |
257 | bool same_page = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., is_contig = false |
262 | If type of mapping == data inline in the inode Then |
273 | If iomap_block_needs_zeroing(inode, iomap, pos) Then |
279 | cur_page_in_bio = true |
284 | sector = iomap_sector(iomap, pos) |
285 | If bio && bio_end_sector(bio) == sector Then is_contig = true |
290 | If Not same_page && iop Then atomic_inc( & read_count) |
292 | Go to done |
300 | If iop Then atomic_inc( & read_count) |
305 | nr_vecs = length + PAGE_SIZE - 1 >> PAGE_SHIFT determines the page size |
307 | If bio Then submit_bio(bio) |
312 | bio = bio_alloc(gfp, min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(BIO_MAX_PAGES, nr_vecs)) |
317 | bio_set_dev(bio, block device for I/O ) |
318 | bi_end_io = iomap_read_end_io |
321 | bio_add_page(bio, page, plen, poff) |
322 | done : |
Name | Describe |
---|---|
iomap_readpages_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 |