Skip to content

Commit 6d73c9c

Browse files
author
Al Viro
committed
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>
1 parent acfde6e commit 6d73c9c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

fs/dcache.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,6 @@ static inline void __dget_dlock(struct dentry *dentry)
948948
dentry->d_lockref.count++;
949949
}
950950

951-
static inline void __dget(struct dentry *dentry)
952-
{
953-
lockref_get(&dentry->d_lockref);
954-
}
955-
956951
struct dentry *dget_parent(struct dentry *dentry)
957952
{
958953
int gotref;
@@ -1002,7 +997,7 @@ static struct dentry * __d_find_any_alias(struct inode *inode)
1002997
if (hlist_empty(&inode->i_dentry))
1003998
return NULL;
1004999
alias = hlist_entry(inode->i_dentry.first, struct dentry, d_u.d_alias);
1005-
__dget(alias);
1000+
lockref_get(&alias->d_lockref);
10061001
return alias;
10071002
}
10081003

0 commit comments

Comments
 (0)