Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:z3fold_page_isolate

Proto:static bool z3fold_page_isolate(struct page *page, isolate_mode_t mode)

Type:bool

Parameter:

TypeParameterName
struct page *page
isolate_mode_tmode
1571  VM_BUG_ON_PAGE(!PageMovable(page), page)
1572  VM_BUG_ON_PAGE(PageIsolated(page), page)
1574  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from || st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return false
1578  zhdr = page_address(page)
1579  Lock a z3fold page
1580  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from || st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Go to out
1584  If mapped_count != 0 || foreign_handles != 0 Then Go to out
1587  pool = zhdr_to_pool(zhdr)
1588  spin_lock( & lock)
1589  If Not list_empty - tests whether a list is empty*@head: the list to test. Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1591  If Not list_empty - tests whether a list is empty*@head: the list to test. Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1593  spin_unlock( & lock)
1595  kref_get - increment refcount for object.*@kref: object.
1596  Unlock a z3fold page
1597  Return true
1599  out :
1600  Unlock a z3fold page
1601  Return false