Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__d_instantiate

Proto:static void __d_instantiate(struct dentry *dentry, struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
struct inode *inode
1918  add_flags = d_flags_for_inode(inode)
1919  WARN_ON(d_in_lookup(dentry))
1921  spin_lock( & d_lock)
1925  If protected by d_lock & DCACHE_LRU_LIST Then this_cpu_dec(nr_dentry_negative)
1927  hlist_add_head( & de alias list , & i_dentry)
1928  raw_write_seqcount_begin( & per dentry seqlock )
1929  __d_set_inode_and_type(dentry, inode, add_flags)
1930  raw_write_seqcount_end( & per dentry seqlock )
1931  fsnotify_update_flags(dentry)
1932  spin_unlock( & d_lock)
Caller
NameDescribe
d_instantiated_instantiate - fill in inode information for a dentry*@entry: dentry to complete*@inode: inode to attach to this dentry* Fill in inode information in the entry
d_instantiate_newThis should be equivalent to d_instantiate() + unlock_new_inode(),* with lockdep-related part of unlock_new_inode() done before* anything else. Use that instead of open-coding d_instantiate()/* unlock_new_inode() combinations.