ocfs2: Fix error return in ocfs2_write_cluster()
authorWengang Wang <wen.gang.wang@oracle.com>
Mon, 13 Jul 2009 03:38:23 +0000 (11:38 +0800)
committerJoel Becker <joel.becker@oracle.com>
Tue, 21 Jul 2009 00:32:55 +0000 (17:32 -0700)
A typo caused ocfs2_write_cluster() to return 0 in some error cases.
Fix it.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/aops.c

index b2c52b3a1484f1c57c4b098bf9706fe21c186ac0..25aced3b0c7d11006f1c4d396e9bc2b8e4ffa72d 100644 (file)
@@ -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;
                }
        }