函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\stat.c Create Date:2022-07-29 10:32:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Caller is here responsible for sufficient locking (ie. inode->i_lock)

函数原型:void __inode_add_bytes(struct inode *inode, loff_t bytes)

返回类型:void

参数:

类型参数名称
struct inode *inode
loff_tbytes
679  i_blocks加等于bytes右移9位
680  bytes与等于511
681  i_bytes加等于bytes
682  如果i_bytes大于等于512则
683  i_blocks自加
684  i_bytes减等于512
调用者
名称描述
inode_add_bytes
__dquot_alloc_spaceThis operation can block, but only after everything is updated
dquot_claim_space_nodirtyConvert in-memory reserved quotas to real consumed quotas