Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zsmalloc.c Create Date:2022-07-28 16:27:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trylock_zspage

Proto:static int trylock_zspage(struct zspage *zspage)

Type:int

Parameter:

TypeParameterName
struct zspage *zspage
918  When cursor != NULL cycle
921  fail = cursor
922  Go to unlock
926  Return 1
927  unlock :
928  When cursor != fail cycle lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
932  Return 0
Caller
NameDescribe
free_zspage