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:Insert given block to the beginning of list with free entries

Proto:static int insert_free_dqentry(struct qtree_mem_dqinfo *info, char *buf, uint blk)

Type:int

Parameter:

TypeParameterName
struct qtree_mem_dqinfo *info
char *buf
uintblk
182  tmpbuf = getdqbuf(Space usable in block for quota data )
183  dh = buf
186  If Not tmpbuf Then Return -ENOMEM
188  Number of next block with free entry = cpu_to_le32(First block with free entry )
189  Number of previous block with free entry = cpu_to_le32(0)
190  err = write_blk(info, blk, buf)
191  If err < 0 Then Go to out_buf
193  If First block with free entry Then
194  err = read_blk(info, First block with free entry , tmpbuf)
195  If err < 0 Then Go to out_buf
197  Number of previous block with free entry = cpu_to_le32(blk)
199  err = write_blk(info, First block with free entry , tmpbuf)
200  If err < 0 Then Go to out_buf
203  kfree(tmpbuf)
204  First block with free entry = blk
205  mark_info_dirty(Sb quota is on , Quota type )
206  Return 0
207  out_buf :
208  kfree(tmpbuf)
209  Return err
Caller
NameDescribe
free_dqentryFree dquot entry in data block