函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\quota_v2.c Create Date:2022-07-29 11:09:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Write information header to quota file

函数原型:static int v2_write_file_info(struct super_block *sb, int type)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
172  dqopt等于sb_dqopt(sb)
173  info等于 Information for each quota type [type]
174  qinfo等于dqi_priv
177  lock for writing
178  加自旋锁
179  DFQ_ flags [dq_data_lock] 与等于Is info dirty? 的反
180  Time before block soft limit becomes hard limit 等于cpu_to_le32( Space grace time [dq_data_lock] )
181  Time before inode soft limit becomes hard limit 等于cpu_to_le32( Inode grace time [dq_data_lock] )
183  Flags for quotafile (DQF_*) 等于cpu_to_le32(0)
184  自旋锁解锁
185  Number of blocks in file 等于cpu_to_le32(# of blocks in quota file )
186  Number of first free block in the list 等于cpu_to_le32(First block in list of free blocks )
187  Number of block with at least one free entry 等于cpu_to_le32(First block with free entry )
188  size等于quota_write(sb, type, (char * ) & dinfo, sizeof(structv2_disk_dqinfo), Offset of info header in file )
190  lease a write lock
191  如果size不等于sizeof(structv2_disk_dqinfo)则
192  quota_error(sb, "Can't write info structure")
193  返回:负1
195  返回:0