Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:26
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__lock_parent

Proto:static struct dentry *__lock_parent(struct dentry *dentry)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dentry
600  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
601  spin_unlock( & d_lock)
602  again :
603  parent = READ_ONCE( parent directory )
604  spin_lock( & d_lock)
613  If Value for the false possibility is greater at compile time(parent != parent directory ) Then
614  spin_unlock( & d_lock)
615  Go to again
617  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
618  If parent != dentry Then spin_lock_nested( & d_lock, DENTRY_D_LOCK_NESTED)
620  Else parent = NULL
622  Return parent
Caller
NameDescribe
lock_parent
dentry_killFinish off a dentry we've decided to kill.* Returns dentry requiring refcount drop, or NULL if we're done.