aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 62442e413a00..a49fa44aea1f 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1918,8 +1918,10 @@ out_sems:
1918 1918
1919 mutex_unlock(&inode->i_mutex); 1919 mutex_unlock(&inode->i_mutex);
1920 1920
1921 if (written)
1922 ret = written;
1921 mlog_exit(ret); 1923 mlog_exit(ret);
1922 return written ? written : ret; 1924 return ret;
1923} 1925}
1924 1926
1925static int ocfs2_splice_to_file(struct pipe_inode_info *pipe, 1927static int ocfs2_splice_to_file(struct pipe_inode_info *pipe,