Skip to content
Snippets Groups Projects
Commit 0ff85216 authored by Alexander Zarochentsev's avatar Alexander Zarochentsev
Browse files

Branch HEAD

b=16499
i=adilger
i=nikita

direct use of i_mutex is not portable, even between various Linux kernels
parent 023e5a2d
No related branches found
No related tags found
No related merge requests found
......@@ -1535,9 +1535,9 @@ static int osd_object_sync(const struct lu_env *env, struct dt_object *dt)
file->f_dentry = dentry;
file->f_mapping = inode->i_mapping;
file->f_op = inode->i_fop;
mutex_lock(&inode->i_mutex);
LOCK_INODE_MUTEX(inode);
rc = file->f_op->fsync(file, dentry, 0);
mutex_unlock(&inode->i_mutex);
UNLOCK_INODE_MUTEX(inode);
RETURN(rc);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment