]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/aio.h
Fix user namespace exiting OOPs
[linux-2.6-omap-h63xx.git] / include / linux / aio.h
index 43dc2ebfaa0e0e973e9ffca58ba66909ea7e46d0..d10e608f232d04e053aa3c2bd8b68a810df6aad8 100644 (file)
@@ -86,7 +86,7 @@ struct kioctx;
  */
 struct kiocb {
        struct list_head        ki_run_list;
-       long                    ki_flags;
+       unsigned long           ki_flags;
        int                     ki_users;
        unsigned                ki_key;         /* id of this request */
 
@@ -119,6 +119,12 @@ struct kiocb {
 
        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.
+        */
+       struct file             *ki_eventfd;
 };
 
 #define is_sync_kiocb(iocb)    ((iocb)->ki_key == KIOCB_SYNC_KEY)