diff options
| author | Steve French <sfrench@us.ibm.com> | 2008-05-06 13:55:32 -0400 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2008-05-06 13:55:32 -0400 |
| commit | a815752ac0ffdb910e92958d41d28f4fb28e5296 (patch) | |
| tree | a3aa16a282354da0debe8e3a3a7ed8aac6e54001 /include/linux/aio.h | |
| parent | 5ade9deaaa3e1f7291467d97b238648e43eae15e (diff) | |
| parent | a15306365a16380f3bafee9e181ba01231d4acd7 (diff) | |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/aio.h')
| -rw-r--r-- | include/linux/aio.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h index 0d0b7f629bd3..b51ddd28444e 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h | |||
| @@ -209,27 +209,8 @@ extern ssize_t wait_on_sync_kiocb(struct kiocb *iocb); | |||
| 209 | extern int aio_put_req(struct kiocb *iocb); | 209 | extern int aio_put_req(struct kiocb *iocb); |
| 210 | extern void kick_iocb(struct kiocb *iocb); | 210 | extern void kick_iocb(struct kiocb *iocb); |
| 211 | extern int aio_complete(struct kiocb *iocb, long res, long res2); | 211 | extern int aio_complete(struct kiocb *iocb, long res, long res2); |
| 212 | extern void __put_ioctx(struct kioctx *ctx); | ||
| 213 | struct mm_struct; | 212 | struct mm_struct; |
| 214 | extern void exit_aio(struct mm_struct *mm); | 213 | extern void exit_aio(struct mm_struct *mm); |
| 215 | extern struct kioctx *lookup_ioctx(unsigned long ctx_id); | ||
| 216 | extern int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, | ||
| 217 | struct iocb *iocb); | ||
| 218 | |||
| 219 | /* semi private, but used by the 32bit emulations: */ | ||
| 220 | struct kioctx *lookup_ioctx(unsigned long ctx_id); | ||
| 221 | int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, | ||
| 222 | struct iocb *iocb); | ||
| 223 | |||
| 224 | #define get_ioctx(kioctx) do { \ | ||
| 225 | BUG_ON(atomic_read(&(kioctx)->users) <= 0); \ | ||
| 226 | atomic_inc(&(kioctx)->users); \ | ||
| 227 | } while (0) | ||
| 228 | #define put_ioctx(kioctx) do { \ | ||
| 229 | BUG_ON(atomic_read(&(kioctx)->users) <= 0); \ | ||
| 230 | if (unlikely(atomic_dec_and_test(&(kioctx)->users))) \ | ||
| 231 | __put_ioctx(kioctx); \ | ||
| 232 | } while (0) | ||
| 233 | 214 | ||
| 234 | #define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait) | 215 | #define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait) |
| 235 | 216 | ||
