mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:10:51 +07:00
ocfs2: needs ->d_lock to poke in ->d_parent->d_inode from ->d_revalidate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4947555584
commit
7b9a2378b4
@ -70,9 +70,10 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags)
|
||||
*/
|
||||
if (inode == NULL) {
|
||||
unsigned long gen = (unsigned long) dentry->d_fsdata;
|
||||
unsigned long pgen =
|
||||
OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen;
|
||||
|
||||
unsigned long pgen;
|
||||
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,
|
||||
dentry->d_name.name,
|
||||
pgen, gen);
|
||||
|
Loading…
Reference in New Issue
Block a user