Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:z3fold_page_putback

Proto:static void z3fold_page_putback(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
1673  zhdr = page_address(page)
1674  pool = zhdr_to_pool(zhdr)
1676  Lock a z3fold page
1677  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.
1679  Initialization list head
1680  If kref_put - decrement refcount for object.*@kref: object.*@release: pointer to the function that will clean up the object when the* last reference to the object is released.* This pointer is required, and it is not acceptable to pass kfree Then
1681  atomic64_dec( & pages_nr)
1682  Return
1684  spin_lock( & lock)
1685  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1686  spin_unlock( & lock)
1687  Unlock a z3fold page