From: Wengang Wang Date: Mon, 13 Jul 2009 03:38:23 +0000 (+0800) Subject: ocfs2: Fix error return in ocfs2_write_cluster() X-Git-Tag: v2.6.31-rc6~5^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbfa9639aea5007313b75ec43b689d5f9e0c037d;p=platform%2Fkernel%2Flinux-stable.git ocfs2: Fix error return in ocfs2_write_cluster() A typo caused ocfs2_write_cluster() to return 0 in some error cases. Fix it. Signed-off-by: Wengang Wang Signed-off-by: Joel Becker --- diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index b2c52b3..25aced3 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -1301,7 +1301,7 @@ static int ocfs2_write_cluster(struct address_space *mapping, if (tmpret) { mlog_errno(tmpret); if (ret == 0) - tmpret = ret; + ret = tmpret; } }