From 0ff852162daab6d723ba27418eba715bb484558c Mon Sep 17 00:00:00 2001 From: zam <zam> Date: Mon, 8 Sep 2008 04:16:02 +0000 Subject: [PATCH] Branch HEAD b=16499 i=adilger i=nikita direct use of i_mutex is not portable, even between various Linux kernels --- lustre/osd/osd_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index dc96790483..c33a7a1d51 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -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); } -- GitLab