Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:splice a disconnected dentry into the tree if one exists

Proto:struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)

Type:struct dentry

Parameter:

TypeParameterName
struct inode *inode
struct dentry *dentry
3002  If IS_ERR(inode) Then Return ERR_CAST - Explicitly cast an error-valued pointer to another pointer type*@ptr: The pointer to cast.* Explicitly cast an error-valued pointer to another pointer type in such a* way as to make it clear that's what's going on.
3005  BUG_ON(!d_unhashed - is dentry hashed*@dentry: entry to check* Returns true if the dentry passed is not currently hashed.)
3007  If Not inode Then Go to out
3010  security_d_instantiate(dentry, inode)
3011  spin_lock( & _blocks, i_bytes, maybe i_size )
3012  If S_ISDIR(i_mode) Then
3013  new = __d_find_any_alias(inode)
3037  Else
3041  put an inode
3042  Return new
3045  out :
3046  __d_add(dentry, inode)
3047  Return NULL
Caller
NameDescribe
d_add_cid_add_ci - lookup or allocate new dentry with case-exact name*@inode: the inode case-insensitive lookup has found*@dentry: the negative dentry that was passed to the parent's lookup func*@name: the case-exact name to be associated with the returned