Function report |
Source Code:mm\z3fold.c |
Create Date:2022-07-28 16:29:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_compact_page
Proto:static void do_compact_page(struct z3fold_header *zhdr, bool locked)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct z3fold_header * | zhdr | |
bool | locked |
827 | pool = zhdr_to_pool(zhdr) |
830 | page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr) |
831 | If locked Then WARN_ON(Try to lock a z3fold page ) |
833 | Else Lock a z3fold page |
837 | Return |
841 | spin_unlock( & lock) |
844 | atomic64_dec( & pages_nr) |
845 | Return |
852 | Return |
855 | If Not foreign_handles && buddy_single(zhdr) && mapped_count == 0 && compact_single_buddy(zhdr) Then |
859 | Else Unlock a z3fold page |
861 | Return |
Name | Describe |
---|---|
compact_page_work | |
z3fold_free | z3fold_free() - frees the allocation associated with the given handle*@pool: pool in which the allocation resided*@handle: handle associated with the allocation returned by z3fold_alloc()* In the case that the z3fold page in which the allocation resides |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |