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:d_exchange - exchange two dentries*@dentry1: first dentry*@dentry2: second dentry

Proto:void d_exchange(struct dentry *dentry1, struct dentry *dentry2)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry1
struct dentry *dentry2
2908  Lock out other writers and update the count.* Acts like a normal spin_lock/unlock.* Don't need preempt_disable() because that is in the spin_lock already.
2910  WARN_ON(! Where the name belongs to - NULL is * negative )
2911  WARN_ON(! Where the name belongs to - NULL is * negative )
2912  WARN_ON(linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(dentry1))
2913  WARN_ON(linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(dentry2))
2915  __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
2917  write_sequnlock( & rename_lock)