函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:runcate_inode_pages - truncate *all* the pages from an offset*@mapping: mapping to truncate*@lstart: offset from which to truncate* Called under (and serialised by) inode->i_mutex.* Note: When this function returns, there can be a page in the process of

函数原型:void truncate_inode_pages(struct address_space *mapping, loff_t lstart)

返回类型:void

参数:

类型参数名称
struct address_space *mapping>nrpages can be non-zero when this function returns even after
loff_tlstart
476  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
调用者
名称描述
truncate_inode_pages_finalruncate_inode_pages_final - truncate *all* pages before inode dies*@mapping: mapping to truncate* Called under (and serialized by) inode->i_mutex.* Filesystems have to use this in the .evict_inode path to inform the
truncate_pagecacheruncate_pagecache - unmap and remove pagecache that has been truncated*@inode: inode*@newsize: new file size* inode's new i_size must already be written before truncate_pagecache* is called.* This function should typically be called before the filesystem
dquot_quota_syncWrite all dquot structures to disk and make them visible from userspace
dquot_disableTurn quota off on a device. type == -1 ==> quotaoff for all types (umount)
kill_bdevKill _all_ buffers and pagecache , dirty or not..