| Function report | 
| Source Code: fs\buffer.c | Create Date:2022-07-28 20:14:08 | 
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Create the page-cache page that contains the requested block.* This is used purely for blockdev mappings.
Proto:static int grow_dev_page(struct block_device *bdev, sector_t block, unsigned long index, int size, int sizebits, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct block_device * | bdev | |
| sector_t | block | |
| unsigned long | index | |
| int | size | |
| int | sizebits | |
| gfp_t | gfp | 
| 976 | ret = 0 | 
| 987 | gfp_mask |= __GFP_NOFAIL | 
| 991 | BUG_ON(!PageLocked(page)) | 
| 993 | If page_has_buffers(page) Then | 
| 995 | If size of mapping == size Then | 
| 999 | Go to done | 
| 1001 | If Not try_to_free_buffers(page) Then Go to failed | 
| 1008 | bh = Create the appropriate buffers when given a page for data area and* the size of each buffer | 
| 1015 | spin_lock( & private_lock) | 
| 1016 | link_dev_buffers(page, bh) | 
| 1019 | spin_unlock( & private_lock) | 
| 1020 | done : | 
| 1022 | failed : | 
| 1025 | Return ret | 
| Name | Describe | 
|---|---|
| grow_buffers | Create buffers for the specified block device block's page. If* that page was dirty, the buffers are set dirty also. | 
| 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 |