diff options
author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2006-10-01 02:28:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:24 -0400 |
commit | 3a2711116073db258224afd2cc0f478bdf305575 (patch) | |
tree | 83117f5b2846833102918329e3c17607ddd08d9e /include | |
parent | 9ba0bdfd040b2893bcddfec7165b545d22fc2dc7 (diff) |
[PATCH] Remove BUG_ON(unlikely) in include/linux/aio.h
BUG_ON() does this unlikely check itself, as bugs in Linux are unlikely
anyway :)
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Acked-by: Zach Brown <zach.brown@oracle.com>
Acked-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/aio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h index 00c8efa95cc3..8a0193385a9b 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h | |||
@@ -213,11 +213,11 @@ int FASTCALL(io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, | |||
213 | struct iocb *iocb)); | 213 | struct iocb *iocb)); |
214 | 214 | ||
215 | #define get_ioctx(kioctx) do { \ | 215 | #define get_ioctx(kioctx) do { \ |
216 | BUG_ON(unlikely(atomic_read(&(kioctx)->users) <= 0)); \ | 216 | BUG_ON(atomic_read(&(kioctx)->users) <= 0); \ |
217 | atomic_inc(&(kioctx)->users); \ | 217 | atomic_inc(&(kioctx)->users); \ |
218 | } while (0) | 218 | } while (0) |
219 | #define put_ioctx(kioctx) do { \ | 219 | #define put_ioctx(kioctx) do { \ |
220 | BUG_ON(unlikely(atomic_read(&(kioctx)->users) <= 0)); \ | 220 | BUG_ON(atomic_read(&(kioctx)->users) <= 0); \ |
221 | if (unlikely(atomic_dec_and_test(&(kioctx)->users))) \ | 221 | if (unlikely(atomic_dec_and_test(&(kioctx)->users))) \ |
222 | __put_ioctx(kioctx); \ | 222 | __put_ioctx(kioctx); \ |
223 | } while (0) | 223 | } while (0) |