Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:17:37
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Attempt to detach a locked page from its ->mapping. If it is dirty or if* someone else has a ref on the page, abort and return 0. If it was* successfully detached, return 1. Assumes the caller has a single ref on* this page.

Proto:int remove_mapping(struct address_space *mapping, struct page *page)

Type:int

Parameter:

TypeParameterName
struct address_space *mapping
struct page *page
961  If Same as remove_mapping, but if the page is removed from the mapping, it* gets returned with a refcount of 0. Then
967  page_ref_unfreeze(page, 1)
968  Return 1
970  Return 0