aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 41000f223ca4..dd1a4901a54b 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2245,7 +2245,7 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
2245 file->f_path.dentry->d_name.name, 2245 file->f_path.dentry->d_name.name,
2246 (unsigned int)nr_segs); 2246 (unsigned int)nr_segs);
2247 2247
2248 if (iocb->ki_left == 0) 2248 if (iocb->ki_nbytes == 0)
2249 return 0; 2249 return 0;
2250 2250
2251 appending = file->f_flags & O_APPEND ? 1 : 0; 2251 appending = file->f_flags & O_APPEND ? 1 : 0;
@@ -2296,7 +2296,7 @@ relock:
2296 2296
2297 can_do_direct = direct_io; 2297 can_do_direct = direct_io;
2298 ret = ocfs2_prepare_inode_for_write(file, ppos, 2298 ret = ocfs2_prepare_inode_for_write(file, ppos,
2299 iocb->ki_left, appending, 2299 iocb->ki_nbytes, appending,
2300 &can_do_direct, &has_refcount); 2300 &can_do_direct, &has_refcount);
2301 if (ret < 0) { 2301 if (ret < 0) {
2302 mlog_errno(ret); 2302 mlog_errno(ret);
@@ -2304,7 +2304,7 @@ relock:
2304 } 2304 }
2305 2305
2306 if (direct_io && !is_sync_kiocb(iocb)) 2306 if (direct_io && !is_sync_kiocb(iocb))
2307 unaligned_dio = ocfs2_is_io_unaligned(inode, iocb->ki_left, 2307 unaligned_dio = ocfs2_is_io_unaligned(inode, iocb->ki_nbytes,
2308 *ppos); 2308 *ppos);
2309 2309
2310 /* 2310 /*