函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Turn quotas on on a device

函数原型:static int vfs_setup_quota_inode(struct inode *inode, int type)

返回类型:int

参数:

类型参数名称
struct inode *inode
inttype
2303  sb等于i_sb
2304  dqopt等于sb_dqopt(sb)
2306  如果非S_ISREG(i_mode)则返回:负EACCES
2308  如果IS_RDONLY(inode)则返回:负EROFS
2310  如果Does kernel know about any quota information for given sb + type? 则返回:负EBUSY
2313  inodes of quotafiles [type]等于igrab(inode)
2314  如果非 inodes of quotafiles [type]则返回:负EIO
2316  如果非 Flags for diskquotas on this device 按位与DQUOT_QUOTA_SYS_FILE的值则
2320  inode_lock(inode)
2321  i_flags或等于Inode is not counted to quota
2322  inode_unlock(inode)
2327  Release all quotas referenced by inode.* This function only be called on inode free or converting* a file to quota file, no other users for the i_dquot in* both cases, so we needn't call synchronize_srcu() after* clearing i_dquot.
2329  返回:0
调用者
名称描述
dquot_load_quota_inodeMore powerful function for turning on quotas on given quota inode allowing* setting of individual quota flags