Commit 7b9a2378 authored by Al Viro's avatar Al Viro

ocfs2: needs ->d_lock to poke in ->d_parent->d_inode from ->d_revalidate()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 49475555
...@@ -70,9 +70,10 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags) ...@@ -70,9 +70,10 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags)
*/ */
if (inode == NULL) { if (inode == NULL) {
unsigned long gen = (unsigned long) dentry->d_fsdata; unsigned long gen = (unsigned long) dentry->d_fsdata;
unsigned long pgen = unsigned long pgen;
OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen; spin_lock(&dentry->d_lock);
pgen = OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen;
spin_unlock(&dentry->d_lock);
trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len, trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len,
dentry->d_name.name, dentry->d_name.name,
pgen, gen); pgen, gen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment