函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Read dquot from disk and alloc space for it

函数原型:int dquot_acquire(struct dquot *dquot)

返回类型:int

参数:

类型参数名称
struct dquot *dquot
428  ret等于0, ret2等于0
429  dqopt等于sb_dqopt( superblock this applies to )
431  mutex_lock( & dquot IO lock )
432  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
433  ret等于read_dqblk(dquot)
434  如果ret小于0则转到:out_iolock
438  smp_mb__before_atomic()
439  设置内存位
441  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from且非 Offset of dquot on disk [dq_lock, stable once set]
442  ret等于commit_dqblk(dquot)
448  如果ret小于0则转到:out_iolock
450  如果ret2小于0则
451  ret等于ret2
452  转到:out_iolock
459  smp_mb__before_atomic()
460  设置内存位
461  out_iolock :
462  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
463  返回:ret