函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\z3fold.c Create Date:2022-07-27 18:04:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Has to be called with lock held

函数原型:static int z3fold_compact_page(struct z3fold_header *zhdr)

返回类型:int

参数:

类型参数名称
struct z3fold_header *zhdr
780  page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr)
782  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:0
785  如果此条件成立可能性小(为编译器优化)(PageIsolated(page))则返回:0
788  如果middle_chunks恒等于0则返回:0
791  如果first_chunks恒等于0且last_chunks恒等于0则
793  mchunk_memmove(zhdr, ZHDR_CHUNKS)
794  first_chunks等于middle_chunks
795  middle_chunks等于0
796  start_middle等于0
797  first_num自加
798  返回:1
805  如果first_chunks不等于0且last_chunks恒等于0且start_middlefirst_chunksZHDR_CHUNKS大于等于BIG_CHUNK_GAP
808  mchunk_memmove(zhdr, first_chunks + ZHDR_CHUNKS)
809  start_middle等于first_chunksZHDR_CHUNKS
810  返回:1
811  否则如果last_chunks不等于0且first_chunks恒等于0且TOTAL_CHUNKSlast_chunksstart_middlemiddle_chunks大于等于BIG_CHUNK_GAP
815  new_start等于TOTAL_CHUNKSlast_chunksmiddle_chunks
817  mchunk_memmove(zhdr, new_start)
818  start_middle等于new_start
819  返回:1
822  返回:0
调用者
名称描述
do_compact_page