Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dquot_set_dqblk

Proto:int dquot_set_dqblk(struct super_block *sb, struct kqid qid, struct qc_dqblk *di)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
struct kqidqid
struct qc_dqblk *di
2748  dquot = Get reference to dquot* Locking is slightly tricky here. We are guarded from parallel quotaoff()* destroying our dquot by:* a) checking for quota flags under dq_list_lock and* b) getting a reference to dquot before we release dq_list_lock
2749  If IS_ERR(dquot) Then
2750  rc = PTR_ERR(dquot)
2751  Go to out
2753  rc = Generic routine for setting common part of quota structure
2754  Put reference to dquot
2755  out :
2756  Return rc