函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:runcate_pagecache_range - unmap and remove pagecache that is hole-punched*@inode: inode*@lstart: offset of beginning of hole*@lend: offset of last byte of hole* This function should typically be called before the filesystem

函数原型:void truncate_pagecache_range(struct inode *inode, loff_t lstart, loff_t lend)

返回类型:void

参数:

类型参数名称
struct inode *inode
loff_tlstart
loff_tlend
912  mapping等于i_mapping
913  unmap_start等于und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(lstart, PAGE_SIZE)
914  unmap_end等于und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(1 + lend, PAGE_SIZE)减1
928  如果unmap_end大于unmap_startunmap_mapping_range(mapping, unmap_start, 1 + unmap_end - unmap_start, 0)
931  runcate_inode_pages_range - truncate range of pages specified by start & end byte offsets*@mapping: mapping to truncate*@lstart: offset from which to truncate*@lend: offset to which to truncate (inclusive)* Truncate the page cache, removing the pages that
调用者
名称描述
iomap_write_failed