diff -urpN linux-2.6-xfs1/include/linux/aio.h linux-2.6-xfs1.stk4/include/linux/aio.h --- linux-2.6-xfs1/include/linux/aio.h 2008-03-30 03:27:54.000000000 +0200 +++ linux-2.6-xfs1.stk4/include/linux/aio.h 2008-04-27 05:47:09.000000000 +0200 @@ -86,7 +86,8 @@ struct kioctx; */ struct kiocb { struct list_head ki_run_list; - unsigned long ki_flags; + unsigned short ki_flags; /* range: 0..2 */ + unsigned short ki_opcode; int ki_users; unsigned ki_key; /* id of this request */ @@ -102,23 +103,22 @@ struct kiocb { } ki_obj; __u64 ki_user_data; /* user's data for completion */ - wait_queue_t ki_wait; loff_t ki_pos; + wait_queue_t ki_wait; void *private; /* State that we remember to be able to restart/retry */ - unsigned short ki_opcode; + /*unsigned short ki_opcode; - moved up for denser packing */ size_t ki_nbytes; /* copy of iocb->aio_nbytes */ - char __user *ki_buf; /* remaining iocb->aio_buf */ size_t ki_left; /* remaining bytes */ + unsigned ki_nr_segs; + unsigned ki_cur_seg; struct iovec ki_inline_vec; /* inline vector */ + char __user *ki_buf; /* remaining iocb->aio_buf */ struct iovec *ki_iovec; - unsigned long ki_nr_segs; - unsigned long ki_cur_seg; struct list_head ki_list; /* the aio core uses this * for cancellation */ - /* * If the aio_resfd field of the userspace iocb is not zero, * this is the underlying file* to deliver event to.