Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Fast lookup failed, do it the slow way

Proto:static struct dentry *__lookup_slow(const struct qstr *name, struct dentry *dir, unsigned int flags)

Type:struct dentry

Parameter:

TypeParameterName
const struct qstr *name
struct dentry *dir
unsigned intflags
1643  inode = Where the name belongs to - NULL is * negative
1644  DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq)
1647  If Value for the false possibility is greater at compile time(IS_DEADDIR(inode)) Then Return ERR_PTR( - ENOENT)
1649  again :
1650  dentry = d_alloc_parallel(dir, name, & wq)
1651  If IS_ERR(dentry) Then Return dentry
1653  If Value for the false possibility is greater at compile time(!d_in_lookup(dentry)) Then
1654  error = d_revalidate(dentry, flags)
1656  If Not error Then
1658  dput(dentry)
1659  Go to again
1661  dput(dentry)
1662  dentry = ERR_PTR(error)
1664  Else
1665  old = lookup(inode, dentry, flags)
1666  d_lookup_done(dentry)
1668  dput(dentry)
1669  dentry = old
1672  Return dentry
Caller
NameDescribe
lookup_slow
lookup_one_lenlookup_one_len - filesystem helper to lookup single pathname component*@name: pathname component to lookup*@base: base directory to lookup from*@len: maximum length @len should be interpreted to* Note that this routine is purely a helper for filesystem