]> 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)
commit120b03b4acb8345b8e045c0c8c02672d9d7f85fb
tree6907d3f30bfee6983b8f953b52120844ced831ec
parent4e7a6896f276e239612ed201d9cf2d4ce96216b2
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