Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-28 20:32:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Read dquot from disk and alloc space for it

Proto:int dquot_acquire(struct dquot *dquot)

Type:int

Parameter:

TypeParameterName
struct dquot *dquot
428  ret = 0 , ret2 = 0
429  dqopt = sb_dqopt( superblock this applies to )
431  mutex_lock( & dquot IO lock )
432  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
433  ret = read_dqblk(dquot)
434  If ret < 0 Then Go to out_iolock
438  smp_mb__before_atomic()
439  Atomically set a bit in memory
441  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from && Not Offset of dquot on disk [dq_lock, stable once set] Then
442  ret = commit_dqblk(dquot)
448  If ret < 0 Then Go to out_iolock
450  If ret2 < 0 Then
451  ret = ret2
452  Go to out_iolock
459  smp_mb__before_atomic()
460  Atomically set a bit in memory
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  Return ret