Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__d_instantiate_anon

Proto:static struct dentry *__d_instantiate_anon(struct dentry *dentry, struct inode *inode, bool disconnected)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dentry
struct inode *inode
booldisconnected
2006  security_d_instantiate(dentry, inode)
2007  spin_lock( & _blocks, i_bytes, maybe i_size )
2008  res = __d_find_any_alias(inode)
2009  If res Then
2010  spin_unlock( & _blocks, i_bytes, maybe i_size )
2011  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
2012  Go to out_iput
2016  add_flags = d_flags_for_inode(inode)
2018  If disconnected Then add_flags |= DCACHE_DISCONNECTED
2021  spin_lock( & d_lock)
2022  __d_set_inode_and_type(dentry, inode, add_flags)
2023  hlist_add_head( & de alias list , & i_dentry)
2024  If Not disconnected Then
2025  hlist_bl_lock( & s_roots)
2026  hlist_bl_add_head( & lookup hash list , & s_roots)
2027  hlist_bl_unlock( & s_roots)
2029  spin_unlock( & d_lock)
2030  spin_unlock( & _blocks, i_bytes, maybe i_size )
2032  Return dentry
2034  out_iput :
2035  put an inode
2036  Return res
Caller
NameDescribe
d_instantiate_anon
__d_obtain_alias