Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_name

Proto:static void copy_name(struct dentry *dentry, struct dentry *target)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
struct dentry *target
2777  struct external_name * old_name = NULL
2778  If Value for the false possibility is greater at compile time(dname_external(dentry)) Then old_name = external_name(dentry)
2780  If Value for the false possibility is greater at compile time(dname_external(target)) Then
2781  atomic_inc( & count)
2782  d_name = d_name
2783  Else
2784  memcpy( small names , name, len + 1)
2786  name = small names
2787  hash_len = hash_len
2789  If old_name && Value is more likely to compile time(atomic_dec_and_test( & count)) Then kfree_rcu() - kfree an object after a grace period(old_name, head)
Caller
NameDescribe
__d_move__d_move - move a dentry*@dentry: entry to move*@target: new dentry*@exchange: exchange the two dentries* Update the dcache to reflect the move of a file name