On Wed, Aug 26, 2015 at 03:11:51PM -0700, Andrew Morton wrote: > From: "Norton.Zhu" <norton....@huawei.com> > Subject: ocfs2: optimize error handling in dlm_request_join > > Currently error handling in dlm_request_join is a little obscure, so > optimize it to promote readability. > > If packet.code is invalid, reset it to JOIN_DISALLOW to keep it meaningful. > It only influences the log printing. > > Signed-off-by: Norton.Zhu <norton....@huawei.com> > Cc: Srinivas Eeda <srinivas.e...@oracle.com> > Cc: Mark Fasheh <mfas...@suse.com> > Cc: Joel Becker <jl...@evilplan.org> > Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Great cleanup btw, turning that mess into a switch statement, thanks. Reviewed-by: Mark Fasheh <mfas...@suse.de> -- Mark Fasheh _______________________________________________ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com https://oss.oracle.com/mailman/listinfo/ocfs2-devel