Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:quota_setxquota

Proto:static int quota_setxquota(struct super_block *sb, int type, qid_t id, void __user *addr)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
qid_tid
void __user *addr
565  If copy_from_user( & fdq, addr, size of fdq ) Then Return -EFAULT
567  If Not set_dqblk Then Return -ENOSYS
569  qid = make_kqid - Map a user-namespace, type, qid tuple into a kqid
570  If Not qid_has_mapping - Report if a qid maps into a user namespace.*@ns: The user namespace to see if a value maps into.*@qid: The kernel internal quota identifier to test. Then Return -EINVAL
573  If from_kqid(s_user_ns, qid) == 0 && field specifier & (FS_DQ_WARNS_MASK | FS_DQ_TIMER_MASK) Then
578  If Not set_info Then Return -EINVAL
580  copy_qcinfo_from_xfs_dqblk( & qinfo, & fdq)
581  ret = set_info(sb, type, & qinfo)
582  If ret Then Return ret
585  field specifier &= ~(FS_DQ_WARNS_MASK | FS_DQ_TIMER_MASK)
587  copy_from_xfs_dqblk( & qdq, & fdq)
588  Return set_dqblk(sb, qid, & qdq)
Caller
NameDescribe
do_quotactlCopy parameters and call proper function