Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Remove references to dquots from inode and add dquot to list for freeing* if we have the last reference to dquot

Proto:static void remove_inode_dquot_ref(struct inode *inode, int type, struct list_head *tofree_head)

Type:void

Parameter:

TypeParameterName
struct inode *inode
inttype
struct list_head *tofree_head
1010  dquots = i_dquot(inode)
1011  dquot = dquots[type]
1013  If Not dquot Then Return
1016  dquots[type] = NULL
1017  If list_empty - tests whether a list is empty*@head: the list to test. Then
1022  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
1023  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1024  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
1025  Else
1030  Put reference to dquot
Caller
NameDescribe
remove_dquot_ref