Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:11 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lock_page_mkwrite() is not allowed to change the file size as it gets* called from a page fault handler when a page is first dirtied
Proto:int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, get_block_t get_block)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
struct vm_fault * | vmf | |
get_block_t | get_block |
2500 | inode = file_inode(File we map to (can be NULL). ) |
2511 | Go to out_unlock |
2515 | If Our offset within mapping. + 1 << PAGE_SHIFT determines the page size > size Then end = size & ~PAGE_MASK |
2520 | ret = __block_write_begin(page, 0, end, get_block) |
2521 | If Not ret Then ret = block_commit_write(page, 0, end) |
2524 | If Value for the false possibility is greater at compile time(ret < 0) Then Go to out_unlock |
2526 | Dirty a page |
2528 | Return 0 |
2529 | out_unlock : |
2531 | Return ret |
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 |