Tao Ma
2009-May-18 22:47 UTC
[Ocfs2-devel] [PATCH] ocfs2/trivial: Code cleanup of ocfs2_mount_volume.
No need for nonsense "goto leave" in the end of ocfs2_mount_volume. Signed-off-by: Tao Ma <tao.ma at oracle.com> --- fs/ocfs2/super.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 79ff8d9..4601a57 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1766,13 +1766,8 @@ static int ocfs2_mount_volume(struct super_block *sb) } status = ocfs2_truncate_log_init(osb); - if (status < 0) { + if (status < 0) mlog_errno(status); - goto leave; - } - - if (ocfs2_mount_local(osb)) - goto leave; leave: if (unlock_super) -- 1.6.1.40.g8ea6a
Sunil Mushran
2009-May-19 21:17 UTC
[Ocfs2-devel] [PATCH] ocfs2/trivial: Code cleanup of ocfs2_mount_volume.
Tao Ma wrote:> No need for nonsense "goto leave" in the end of ocfs2_mount_volume. > > Signed-off-by: Tao Ma <tao.ma at oracle.com> >Remove redundant gotos in ocfs2_mount_volume(). Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>> --- > fs/ocfs2/super.c | 7 +------ > 1 files changed, 1 insertions(+), 6 deletions(-) > > diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c > index 79ff8d9..4601a57 100644 > --- a/fs/ocfs2/super.c > +++ b/fs/ocfs2/super.c > @@ -1766,13 +1766,8 @@ static int ocfs2_mount_volume(struct super_block *sb) > } > > status = ocfs2_truncate_log_init(osb); > - if (status < 0) { > + if (status < 0) > mlog_errno(status); > - goto leave; > - } > - > - if (ocfs2_mount_local(osb)) > - goto leave; > > leave: > if (unlock_super) >
Joel Becker
2009-Jun-04 02:24 UTC
[Ocfs2-devel] [PATCH] ocfs2/trivial: Code cleanup of ocfs2_mount_volume.
On Tue, May 19, 2009 at 06:47:20AM +0800, Tao Ma wrote:> No need for nonsense "goto leave" in the end of ocfs2_mount_volume. > > Signed-off-by: Tao Ma <tao.ma at oracle.com>This is now in the merge-window branch of ocfs2.git. Joel -- "Only a life lived for others is a life worth while." -Albert Einstein Joel Becker Principal Software Developer Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127
Maybe Matching Threads
- fs/ocfs2/super.c:1809 ocfs2_mount_volume() warn: missing error code 'status'
- [PATCH - 2.6.17-rc5] ext3: Fix missed mutex unlock - unroll
- dlm timeouts and following errors -112
- Patches backported from mainline
- [PATCH] ocfs2: Reserve 1 more cluster in expanding_inline_dir for indexed dir.