aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-02-25 19:36:27 -0500
committerBenjamin LaHaise <bcrl@kvack.org>2013-07-30 11:53:12 -0400
commit8bc92afcf7f5c598001dd04e62d88f57f6e89e51 (patch)
tree4791db163dce11aa6a3ff6b4b4d9fecd1fe3e661 /include/linux
parent73a7075e3f6ec63dc359064eea6fd84f406cf2a5 (diff)
aio: Kill unneeded kiocb members
The old aio retry infrastucture needed to save the various arguments to to aio operations. But with the retry infrastructure gone, we can trim struct kiocb quite a bit. Signed-off-by: Kent Overstreet <koverstreet@google.com> Cc: Zach Brown <zab@redhat.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Jens Axboe <axboe@kernel.dk> Cc: Asai Thambi S P <asamymuthupa@micron.com> Cc: Selvan Mani <smani@micron.com> Cc: Sam Bradshaw <sbradshaw@micron.com> Cc: Jeff Moyer <jmoyer@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Benjamin LaHaise <bcrl@kvack.org> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/aio.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h
index 7bb766e73968..b570472355d1 100644
--- a/include/linux/aio.h
+++ b/include/linux/aio.h
@@ -36,6 +36,7 @@ struct kiocb {
36 struct kioctx *ki_ctx; /* NULL for sync ops */ 36 struct kioctx *ki_ctx; /* NULL for sync ops */
37 kiocb_cancel_fn *ki_cancel; 37 kiocb_cancel_fn *ki_cancel;
38 void (*ki_dtor)(struct kiocb *); 38 void (*ki_dtor)(struct kiocb *);
39 void *private;
39 40
40 union { 41 union {
41 void __user *user; 42 void __user *user;
@@ -44,15 +45,7 @@ struct kiocb {
44 45
45 __u64 ki_user_data; /* user's data for completion */ 46 __u64 ki_user_data; /* user's data for completion */
46 loff_t ki_pos; 47 loff_t ki_pos;
47 48 size_t ki_nbytes; /* copy of iocb->aio_nbytes */
48 void *private;
49 /* State that we remember to be able to restart/retry */
50 unsigned short ki_opcode;
51 size_t ki_nbytes; /* copy of iocb->aio_nbytes */
52 char __user *ki_buf; /* remaining iocb->aio_buf */
53 struct iovec ki_inline_vec; /* inline vector */
54 struct iovec *ki_iovec;
55 unsigned long ki_nr_segs;
56 49
57 struct list_head ki_list; /* the aio core uses this 50 struct list_head ki_list; /* the aio core uses this
58 * for cancellation */ 51 * for cancellation */