dlmglue.c: add missed mlog lines
PATCH 1/1 dlmglue.c: add missed mlog lines
This patch adds the missed mlog_exit() and mlog_exit_void() lines when routines return.
Signed-off-by Coly Li <[email protected]>
--- fs/ocfs2/dlmglue.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
fs/ocfs2/dlmglue.c +4 -1
@@ -1548,8 +1548,10 @@ int ocfs2_rw_lock(struct inode *inode, int write) (unsigned long long )OCFS2_I (inode)->ip_blkno, write ? "EXMODE" : "PRMODE"); -if (ocfs2_mount_local (osb)) +if (ocfs2_mount_local (osb)) { +mlog_exit (0 );return 0 ; + } lockres = &OCFS2_I (inode)->ip_rw_lockres;
@@ -3009,6 +3011,7 @@ static void ocfs2_unlock_ast(void *opaque, int error)"unlock_action %d\n" , error, lockres->l_name, lockres->l_unlock_action);spin_unlock_irqrestore (&lockres->l_lock, flags); +mlog_exit_void ();return ; }
Signature · 2 lines
Coly Li SuSE Labs
PATCH 1/1 dlmglue.c: add missed mlog lines
Quoted 7 lines · Coly Li
This patch adds the missed
mlog_exit()andmlog_exit_void()lines when routines return.Signed-off-by Coly Li <[email protected]>--- fs/ocfs2/dlmglue.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
Acked-by Mark Fasheh <[email protected]>
--
Mark Fasheh