summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-10-29 13:41:06 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2023-11-18 16:19:44 -0500
commit6d73c9ce0285adff18b54a5acadfbbbf8ba40dd5 (patch)
tree91413fdb22d8b011e9b4798205b107502dc411ad /fs/dcache.c
parentacfde6e8abee6b23e53b08606f861d9124288030 (diff)
downloadlinux-6d73c9ce0285adff18b54a5acadfbbbf8ba40dd5.tar.gz
linux-6d73c9ce0285adff18b54a5acadfbbbf8ba40dd5.tar.bz2
linux-6d73c9ce0285adff18b54a5acadfbbbf8ba40dd5.zip
get rid of __dget()
fold into the sole remaining caller Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index c82ae731df9a..b8f1b54a1492 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -948,11 +948,6 @@ static inline void __dget_dlock(struct dentry *dentry)
dentry->d_lockref.count++;
}
-static inline void __dget(struct dentry *dentry)
-{
- lockref_get(&dentry->d_lockref);
-}
-
struct dentry *dget_parent(struct dentry *dentry)
{
int gotref;
@@ -1002,7 +997,7 @@ static struct dentry * __d_find_any_alias(struct inode *inode)
if (hlist_empty(&inode->i_dentry))
return NULL;
alias = hlist_entry(inode->i_dentry.first, struct dentry, d_u.d_alias);
- __dget(alias);
+ lockref_get(&alias->d_lockref);
return alias;
}