函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:23:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Lock ordering:* ->i_mmap_rwsem (truncate_pagecache)* ->private_lock (__free_pte->__set_page_dirty_buffers)* ->swap_lock (exclusive_swap_page, others)* ->i_pages lock* ->i_mutex* ->i_mmap_rwsem (truncate->unmap_mapping_range)* ->mmap_sem* ->i_mmap_rwsem
函数原型:static void page_cache_delete(struct address_space *mapping, struct page *page, void *shadow)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct address_space * | mapping | |
struct page * | page | |
void * | shadow |
123 | nr等于1 |
125 | mapping_set_update( & xas, mapping) |
133 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
134 | VM_BUG_ON_PAGE(PageTail(page), page) |
135 | VM_BUG_ON_PAGE(nr != 1 && shadow, page) |
140 | See page-flags.h for PAGE_MAPPING_FLAGS = NULL |
143 | 如果shadow则 |
144 | nrexceptional加等于nr |
151 | smp_wmb() |
名称 | 描述 |
---|---|
__delete_from_page_cache | Delete a page from the page cache and free it. Caller has to make* sure the page is locked and that nobody else uses it - or that usage* is safe. The caller must hold the i_pages lock. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |