ocfs2: remove unneeded goto in ocfs2_reserve_cluster_bitmap_bits()
PATCH 12/131 ocfs2: remove unneeded goto in ocfs2_reserve_cluster_bitmap_bits()
From: Guozhonghua <[email protected]>
Subject: ocfs2: remove unneeded goto in ocfs2_reserve_cluster_bitmap_bits()
Link http://lkml.kernel.org/r/71604351584F6A4EBAE558C676F37CA4F3CDE3A9@H3CMLB14-EX.srv.huawei-3com.com open here
Signed-off-by guozhonghua <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Joseph Qi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/suballoc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
fs/ocfs2/suballoc.c renamed from fs/ocfs2/suballoc.c~ocfs2-the-goto-is-not-useful-in-the-function-ocfs2_reserve_cluster_bitmap_bits-so-remove-it +1 -4
@@ -1147,12 +1147,9 @@ int ocfs2_reserve_cluster_bitmap_bits(stGLOBAL_BITMAP_SYSTEM_INODE ,OCFS2_INVALID_SLOT ,NULL , ALLOC_NEW_GROUP); -if (status <0 && status != -ENOSPC ) { +if (status <0 && status != -ENOSPC )mlog_errno (status); - goto bail; - } -bail:return status; }
_