[Ocfs2-tools-devel] [ocfs2-tools-devel][PATCH] tunefs.ocfs2: fix the parameter misuse of tunefs_dlm_lock

Weiwei Wang wangww631 at huawei.com
Wed Sep 14 02:42:53 PDT 2016


The third and fourth parameters of tunefs_dlm_lock are misused, so swap the order
of 'O2DLM_LEVEL_EXMODE' and 'O2DLM_TRYLOCK'passed.

Signed-off-by: Weiwei Wang <wangww631 at huawei.com>
Signed-off-by: Jun Piao <piaojun at huawei.com>
---
 tunefs.ocfs2/op_resize_volume.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tunefs.ocfs2/op_resize_volume.c b/tunefs.ocfs2/op_resize_volume.c
index 84d8628..79f5fd0 100644
--- a/tunefs.ocfs2/op_resize_volume.c
+++ b/tunefs.ocfs2/op_resize_volume.c
@@ -62,8 +62,8 @@ struct resize_specs {

 static errcode_t online_resize_lock(ocfs2_filesys *fs)
 {
-	return tunefs_dlm_lock(fs, lock_name, O2DLM_LEVEL_EXMODE,
-			       O2DLM_TRYLOCK);
+	return tunefs_dlm_lock(fs, lock_name, O2DLM_TRYLOCK,
+			       O2DLM_LEVEL_EXMODE);
 }

 static errcode_t online_resize_unlock(ocfs2_filesys *fs)




More information about the Ocfs2-tools-devel mailing list