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:This routine is guarded by s_umount semaphore

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

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
948  struct inode * inode, * old_inode = NULL
952  err = 0
954  spin_lock( & s_inode_list_lock)
956  spin_lock( & _blocks, i_bytes, maybe i_size )
957  If Misc & ( Set when inode is about to be freed but still has dirty pages or buffers attached or the inode itself is still dirty | Must be set when calling write_inode_now() if i_count is zero | Serves as both a mutex and completion notification) || Not atomic_read( & i_writecount) || Not dqinit_needed(inode, type) Then
960  spin_unlock( & _blocks, i_bytes, maybe i_size )
961  Continue
963  __iget(inode)
964  spin_unlock( & _blocks, i_bytes, maybe i_size )
965  spin_unlock( & s_inode_list_lock)
971  put an inode
972  err = __dquot_initialize(inode, type)
973  If err Then
974  put an inode
975  Go to out
986  old_inode = inode
987  cond_resched()
988  spin_lock( & s_inode_list_lock)
990  spin_unlock( & s_inode_list_lock)
991  put an inode
992  out :
1000  Return err
Caller
NameDescribe
dquot_load_quota_sb