Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:v1_write_file_info

Proto:static int v1_write_file_info(struct super_block *sb, int type)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
188  dqopt = sb_dqopt(sb)
192  lock for writing
193  ret = quota_read(sb, type, (char * ) & dqblk, sizeof(structv1_disk_dqblk), v1_dqoff(0))
195  If ret != sizeof(structv1_disk_dqblk) Then
196  If ret >= 0 Then ret = -EIO
198  Go to out
200  spin_lock( & dq_data_lock)
201  DFQ_ flags [dq_data_lock] &= ~Is info dirty?
202  ime limit for excessive inode use = Inode grace time [dq_data_lock]
203  ime limit for excessive disk use = Space grace time [dq_data_lock]
204  spin_unlock( & dq_data_lock)
205  ret = quota_write(sb, type, (char * ) & dqblk, sizeof(structv1_disk_dqblk), v1_dqoff(0))
207  If ret == sizeof(structv1_disk_dqblk) Then ret = 0
209  Else if ret > 0 Then ret = -EIO
211  out :
212  lease a write lock
213  Return ret