函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We don't have to be afraid of deadlocks as we never have quotas on quota* files...

函数原型:int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot)

返回类型:int

参数:

类型参数名称
struct qtree_mem_dqinfo *info
struct dquot *dquot
375  type等于 USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid)
376  sb等于 superblock this applies to
378  ddquot等于getdqbuf(Size of quota entry in quota file )
380  如果非ddquot则返回:负ENOMEM
384  如果非 Offset of dquot on disk [dq_lock, stable once set]
385  ret等于Wrapper for inserting quota structure into tree
386  如果ret小于0则
387  quota_error(sb, "Error %zd occurred while creating quota", ret)
389  释放内存
390  返回:ret
393  加自旋锁
394  mem2disk_dqblk(ddquot, dquot)
395  自旋锁解锁
396  ret等于quota_write(sb, type, ddquot, Size of quota entry in quota file , Offset of dquot on disk [dq_lock, stable once set] )
398  如果ret不等于Size of quota entry in quota file
399  quota_error(sb, "dquota write failed")
400  如果ret大于等于0则ret等于负ENOSPC
402  否则
403  ret等于0
405  dqstats_inc(DQST_WRITES)
406  释放内存
408  返回:ret