Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:11
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int generic_cont_expand_simple(struct inode *inode, loff_t size)

Type:int

Parameter:

TypeParameterName
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  If err Then Go to out
2357  err = pagecache_write_begin(NULL, mapping, size, 0, called from cont_expand , & page, & fsdata)
2359  If err Then Go to out
2362  err = pagecache_write_end(NULL, mapping, size, 0, 0, page, fsdata)
2363  BUG_ON(err > 0)
2365  out :
2366  Return err