Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find entry for given id in the tree

Proto:static loff_t find_tree_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk, int depth)

Type:loff_t

Parameter:

TypeParameterName
struct qtree_mem_dqinfo *info
struct dquot *dquot
uintblk
intdepth
574  buf = getdqbuf(Space usable in block for quota data )
575  ret = 0
576  ref = buf
578  If Not buf Then Return -ENOMEM
580  ret = read_blk(info, blk, buf)
581  If ret < 0 Then
582  quota_error( superblock this applies to , "Can't read quota tree block %u", blk)
584  Go to out_buf
586  ret = 0
587  blk = le32_to_cpu(ref[get_index(info, ID this applies to (uid, gid, projid) , depth)])
588  If Not blk Then Go to out_buf
590  If depth < Precomputed depth of quota tree - 1 Then ret = Find entry for given id in the tree
592  Else ret = Find entry in block
594  out_buf :
595  kfree(buf)
596  Return ret
Caller
NameDescribe
find_tree_dqentryFind entry for given id in the tree
find_dqentryFind entry for given id in the tree - wrapper function