Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:09 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Look up the bh in this cpu's LRU. If it's there, move it to the head.
Proto:static struct buffer_head *lookup_bh_lru(struct block_device *bdev, sector_t block, unsigned size)
Type:struct buffer_head
Parameter:
Type | Parameter | Name |
---|---|---|
struct block_device * | bdev | |
sector_t | block | |
unsigned | size |
1297 | struct buffer_head * ret = NULL |
1300 | check_irqs_on() |
1301 | bh_lru_lock() |
1303 | bh = Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(bhs[i]) |
1305 | If bh && start block number == block && b_bdev == bdev && size of mapping == size Then |
1320 | bh_lru_unlock() |
1321 | Return ret |
Name | Describe |
---|---|
__find_get_block | Perform a pagecache lookup for the matching buffer. If it's there, refresh* it in the LRU and mark it as accessed. If it is not present then return* NULL |
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 |