Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_parent

Proto:static inline struct dentry *lock_parent(struct dentry *dentry)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dentry
627  parent = parent directory
628  If linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(dentry) Then Return NULL
630  If Value is more likely to compile time(spin_trylock( & d_lock)) Then Return parent
632  Return __lock_parent(dentry)
Caller
NameDescribe
dentry_killFinish off a dentry we've decided to kill.* Returns dentry requiring refcount drop, or NULL if we're done.
d_prune_aliasesTry to kill dentries associated with this inode.* WARNING: you must own a reference to inode.