Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
023e5a2
)
Branch HEAD
author
zam
<zam>
Mon, 8 Sep 2008 04:16:02 +0000
(
04:16
+0000)
committer
zam
<zam>
Mon, 8 Sep 2008 04:16:02 +0000
(
04:16
+0000)
b=16499
i=adilger
i=nikita
direct use of i_mutex is not portable, even between various Linux kernels
lustre/osd/osd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/osd/osd_handler.c
b/lustre/osd/osd_handler.c
index
dc96790
..
c33a7a1
100644
(file)
--- 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);
}