Merge pull request #24 from arutk/inode_alias_iter_fix

classifier: fix dentry alias list iteration
This commit is contained in:
Michał Mielewczyk 2019-05-24 15:51:30 +02:00 committed by GitHub
commit 068aaddd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,7 @@ static struct dentry *_cas_cls_dir_get_inode_dentry(struct inode *inode)
spin_lock(&iter->d_lock); spin_lock(&iter->d_lock);
if (!d_unhashed(iter)) if (!d_unhashed(iter))
d = iter; d = iter;
spin_unlock(&d->d_lock); spin_unlock(&iter->d_lock);
if (d) if (d)
break; break;
} }