ocfs2: Fix error return in ocfs2_write_cluster()
[safe/jmp/linux-2.6] / fs / ocfs2 / aops.c
index b2c52b3..25aced3 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;
                }
        }