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:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Remove empty block from list and return it

Proto:static int get_free_dqblk(struct qtree_mem_dqinfo *info)

Type:int

Parameter:

TypeParameterName
struct qtree_mem_dqinfo *info
86  buf = getdqbuf(Space usable in block for quota data )
87  dh = buf
90  If Not buf Then Return -ENOMEM
92  If First block in list of free blocks Then
93  blk = First block in list of free blocks
94  ret = read_blk(info, blk, buf)
95  If ret < 0 Then Go to out_buf
97  First block in list of free blocks = le32_to_cpu(Number of next block with free entry )
99  Else
100  memset(buf, 0, Space usable in block for quota data )
102  ret = write_blk(info, # of blocks in quota file , buf)
103  If ret < 0 Then Go to out_buf
105  blk = # of blocks in quota file ++
107  mark_info_dirty(Sb quota is on , Quota type )
108  ret = blk
109  out_buf :
110  kfree(buf)
111  Return ret
Caller
NameDescribe
find_free_dqentryFind space for dquot
do_insert_treeInsert reference to structure into the trie