aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-09-13 13:55:58 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-13 13:55:58 -0400
commit9bf12df31f282e845b3dfaac1e5d5376a041da22 (patch)
tree10d7a21d34c7f2c47eff3e807f5efef46228d507 /fs/ocfs2
parent399a946edbbe90bd03aec2e93ce58c9b3f18e70b (diff)
parentd9b2c8714aef102dea95544a8cd9372b21af463f (diff)
Merge git://git.kvack.org/~bcrl/aio-next
Pull aio changes from Ben LaHaise: "First off, sorry for this pull request being late in the merge window. Al had raised a couple of concerns about 2 items in the series below. I addressed the first issue (the race introduced by Gu's use of mm_populate()), but he has not provided any further details on how he wants to rework the anon_inode.c changes (which were sent out months ago but have yet to be commented on). The bulk of the changes have been sitting in the -next tree for a few months, with all the issues raised being addressed" * git://git.kvack.org/~bcrl/aio-next: (22 commits) aio: rcu_read_lock protection for new rcu_dereference calls aio: fix race in ring buffer page lookup introduced by page migration support aio: fix rcu sparse warnings introduced by ioctx table lookup patch aio: remove unnecessary debugging from aio_free_ring() aio: table lookup: verify ctx pointer staging/lustre: kiocb->ki_left is removed aio: fix error handling and rcu usage in "convert the ioctx list to table lookup v3" aio: be defensive to ensure request batching is non-zero instead of BUG_ON() aio: convert the ioctx list to table lookup v3 aio: double aio_max_nr in calculations aio: Kill ki_dtor aio: Kill ki_users aio: Kill unneeded kiocb members aio: Kill aio_rw_vect_retry() aio: Don't use ctx->tail unnecessarily aio: io_cancel() no longer returns the io_event aio: percpu ioctx refcount aio: percpu reqs_available aio: reqs_active -> reqs_available aio: fix build when migration is disabled ...
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 4f8197caa487..d71903c6068b 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2242,7 +2242,7 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
2242 file->f_path.dentry->d_name.name, 2242 file->f_path.dentry->d_name.name,
2243 (unsigned int)nr_segs); 2243 (unsigned int)nr_segs);
2244 2244
2245 if (iocb->ki_left == 0) 2245 if (iocb->ki_nbytes == 0)
2246 return 0; 2246 return 0;
2247 2247
2248 appending = file->f_flags & O_APPEND ? 1 : 0; 2248 appending = file->f_flags & O_APPEND ? 1 : 0;
@@ -2293,7 +2293,7 @@ relock:
2293 2293
2294 can_do_direct = direct_io; 2294 can_do_direct = direct_io;
2295 ret = ocfs2_prepare_inode_for_write(file, ppos, 2295 ret = ocfs2_prepare_inode_for_write(file, ppos,
2296 iocb->ki_left, appending, 2296 iocb->ki_nbytes, appending,
2297 &can_do_direct, &has_refcount); 2297 &can_do_direct, &has_refcount);
2298 if (ret < 0) { 2298 if (ret < 0) {
2299 mlog_errno(ret); 2299 mlog_errno(ret);
@@ -2301,7 +2301,7 @@ relock:
2301 } 2301 }
2302 2302
2303 if (direct_io && !is_sync_kiocb(iocb)) 2303 if (direct_io && !is_sync_kiocb(iocb))
2304 unaligned_dio = ocfs2_is_io_unaligned(inode, iocb->ki_left, 2304 unaligned_dio = ocfs2_is_io_unaligned(inode, iocb->ki_nbytes,
2305 *ppos); 2305 *ppos);
2306 2306
2307 /* 2307 /*