函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:19
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lity function for filesystems that need to do work on expanding* truncates. Uses filesystem pagecache writes to allow the filesystem to* deal with the hole.

函数原型:int generic_cont_expand_simple(struct inode *inode, loff_t size)

返回类型:int

参数:

类型参数名称
struct inode *inode
loff_tsize
2348  mapping等于i_mapping
2353  err等于de_newsize_ok - may this inode be truncated to a given size*@inode: the inode to be truncated*@offset: the new size to assign to the inode* inode_newsize_ok must be called with i_mutex held
2354  如果err则转到:out
2357  err等于pagecache_write_begin(NULL, mapping, size, 0, called from cont_expand , & page, & fsdata)
2359  如果err则转到:out
2362  err等于pagecache_write_end(NULL, mapping, size, 0, 0, page, fsdata)
2363  BUG_ON(err > 0)
2365  out :
2366  返回:err