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 empty block to the list

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

Type:int

Parameter:

TypeParameterName
struct qtree_mem_dqinfo *info
char *buf
uintblk
117  dh = buf
120  Number of next block with free entry = cpu_to_le32(First block in list of free blocks )
121  Number of previous block with free entry = cpu_to_le32(0)
122  Number of valid entries in block = cpu_to_le16(0)
123  err = write_blk(info, blk, buf)
124  If err < 0 Then Return err
126  First block in list of free blocks = blk
127  mark_info_dirty(Sb quota is on , Quota type )
128  Return 0
Caller
NameDescribe
do_insert_treeInsert reference to structure into the trie
free_dqentryFree dquot entry in data block
remove_treeRemove reference to dquot from tree