Skip to content

Commit fda4369

Browse files
author
Al Viro
committed
ocfs2_find_match(): there's no such thing as NULL or negative ->d_parent
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 3a16136 commit fda4369

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

fs/ocfs2/dcache.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,10 @@ static int ocfs2_match_dentry(struct dentry *dentry,
124124
if (!dentry->d_fsdata)
125125
return 0;
126126

127-
if (!dentry->d_parent)
128-
return 0;
129-
130127
if (skip_unhashed && d_unhashed(dentry))
131128
return 0;
132129

133130
parent = d_inode(dentry->d_parent);
134-
/* Negative parent dentry? */
135-
if (!parent)
136-
return 0;
137-
138131
/* Name is in a different directory. */
139132
if (OCFS2_I(parent)->ip_blkno != parent_blkno)
140133
return 0;

0 commit comments

Comments
 (0)