summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmglue.c
diff options
context:
space:
mode:
authorColy Li <coly.li@suse.de>2009-08-28 19:03:18 +0800
committerJoel Becker <joel.becker@oracle.com>2009-09-23 01:54:47 -0700
commitd92bc5127b27f315ef0ef2c1e1829fd6a5cba54a (patch)
treecf6206f96ba57f53e0b187b88537042662183749 /fs/ocfs2/dlmglue.c
parenta2f2ddbf2bafdbc7e4f3bbf09439b42c8fee2747 (diff)
downloadlinux-d92bc5127b27f315ef0ef2c1e1829fd6a5cba54a.tar.gz
linux-d92bc5127b27f315ef0ef2c1e1829fd6a5cba54a.tar.bz2
linux-d92bc5127b27f315ef0ef2c1e1829fd6a5cba54a.zip
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 <coly.li@suse.de> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r--fs/ocfs2/dlmglue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index bb2fc6993e2a..0d38d67194cb 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -1577,8 +1577,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;
@@ -3038,6 +3040,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;
}