[Debian-ha-commits] [ocfs2-tools] 22/58: tunefs.ocfs2: fix the parameter misuse of tunefs_dlm_lock

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.

commit 6bb78b05f41ef4b8033f62771d81cf4b29eb5997
Author: Weiwei Wang <wangww631 at huawei.com>
Date:   Wed Sep 14 17:42:53 2016 +0800

    tunefs.ocfs2: fix the parameter misuse of tunefs_dlm_lock
    
    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>
    Reviewed-by: Joseph Qi <joseph.qi 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list