函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dquot_add_inodes

函数原型:static int dquot_add_inodes(struct dquot *dquot, qsize_t inodes, struct dquot_warn *warn)

返回类型:int

参数:

类型参数名称
struct dquot *dquot
qsize_tinodes
struct dquot_warn *warn
1269  ret等于0
1271  加自旋锁
1272  newinodes等于current # allocated inodes inodes
1273  如果非sb_has_quota_limits_enabled( superblock this applies to , USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid) )或st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则转到:add
1277  如果absolute limit on allocated inodes newinodes大于absolute limit on allocated inodes 且非ignore_hardlimit(dquot)则
1280  prepare_warning(warn, dquot, Inode hardlimit reached )
1281  ret等于负EDQUOT
1282  转到:out
1285  如果preferred inode limit newinodes大于preferred inode limit ime limit for excessive inode use ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.大于等于ime limit for excessive inode use 且非ignore_hardlimit(dquot)则
1290  prepare_warning(warn, dquot, Inode grace time expired )
1291  ret等于负EDQUOT
1292  转到:out
1295  如果preferred inode limit newinodes大于preferred inode limit ime limit for excessive inode use 恒等于0则
1298  prepare_warning(warn, dquot, Inode softlimit reached )
1299  ime limit for excessive inode use 等于ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems. Inode grace time [dq_data_lock]
1302  add :
1303  current # allocated inodes 等于newinodes
1305  out :
1306  自旋锁解锁
1307  返回:ret
调用者
名称描述
dquot_alloc_inodeThis operation can block, but only after everything is updated
__dquot_transferTransfer the number of inode and blocks from one diskquota to an other