]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: return error when ocfs2_figure_merge_contig_type() fails
authorXue jiufei <xuejiufei@huawei.com>
Wed, 24 Jun 2015 23:55:07 +0000 (16:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Jun 2015 00:49:39 +0000 (17:49 -0700)
commitb565d8b3af9fc263f561ee47aeeb975378a50402
tree6907d3f30bfee6983b8f953b52120844ced831ec
parentbe5294ad48ea59a7be15c20ce4dd4ec56c132910
ocfs2: return error when ocfs2_figure_merge_contig_type() fails

ocfs2_figure_merge_contig_type() still returns CONTIG_NONE when some error
occurs which will cause an unpredictable error.  So return a proper errno
when ocfs2_figure_merge_contig_type() fails.

Signed-off-by: joyce.xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/alloc.c