Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Mark dquot dirty in atomic manner, and return it's old dirty flag state

Proto:int dquot_mark_dquot_dirty(struct dquot *dquot)

Type:int

Parameter:

TypeParameterName
struct dquot *dquot
352  ret = 1
354  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return 0
357  If Flags for diskquotas on this device & Do not track dirty dquots in a list Then Return st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).
361  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return 1
364  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
365  If Not st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then
366  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.
368  ret = 0
370  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
371  Return ret