Skip to content

Commit 14d02c3

Browse files
author
Al Viro
committed
exfat_d_revalidate(): use stable parent inode passed by caller
... no need to bother with ->d_lock and ->d_parent->d_inode. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent c4a9fe6 commit 14d02c3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

fs/exfat/namei.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ static inline void exfat_d_version_set(struct dentry *dentry,
3434
static int exfat_d_revalidate(struct inode *dir, const struct qstr *name,
3535
struct dentry *dentry, unsigned int flags)
3636
{
37-
int ret;
38-
3937
if (flags & LOOKUP_RCU)
4038
return -ECHILD;
4139

@@ -59,11 +57,7 @@ static int exfat_d_revalidate(struct inode *dir, const struct qstr *name,
5957
if (flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET))
6058
return 0;
6159

62-
spin_lock(&dentry->d_lock);
63-
ret = inode_eq_iversion(d_inode(dentry->d_parent),
64-
exfat_d_version(dentry));
65-
spin_unlock(&dentry->d_lock);
66-
return ret;
60+
return inode_eq_iversion(dir, exfat_d_version(dentry));
6761
}
6862

6963
/* returns the length of a struct qstr, ignoring trailing dots if necessary */

0 commit comments

Comments
 (0)