aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWengang Wang <wen.gang.wang@oracle.com>2009-07-12 23:38:23 -0400
committerJoel Becker <joel.becker@oracle.com>2009-07-20 20:32:55 -0400
commitcbfa9639aea5007313b75ec43b689d5f9e0c037d (patch)
treeba34b17b9bc7a248d800d3786bde73633da46756 /fs
parent44d8e4e1e9b941065eb7578669fe51eb65c73e63 (diff)
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 <wen.gang.wang@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index b2c52b3a1484..25aced3b0c7d 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -1301,7 +1301,7 @@ static int ocfs2_write_cluster(struct address_space *mapping,
1301 if (tmpret) { 1301 if (tmpret) {
1302 mlog_errno(tmpret); 1302 mlog_errno(tmpret);
1303 if (ret == 0) 1303 if (ret == 0)
1304 tmpret = ret; 1304 ret = tmpret;
1305 } 1305 }
1306 } 1306 }
1307 1307