diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-03-01 15:04:39 -0500 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-03-01 15:04:39 -0500 |
commit | 6fae9c25134baffbeeb20031479e7ff6f6d8eec0 (patch) | |
tree | c9ab89992ce5293a43cd455a81dc8a5926a28a5e /include/linux/elevator.h | |
parent | c186794dbb466b45cf40f942f2d09d6d5b4b0e42 (diff) | |
parent | f5412be599602124d2bdd49947b231dd77c0bf99 (diff) |
Merge commit 'v2.6.38-rc6' into for-2.6.39/core
Conflicts:
block/cfq-iosched.c
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/linux/elevator.h')
-rw-r--r-- | include/linux/elevator.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index 86120c916fcc..39b68edb388d 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h | |||
@@ -196,15 +196,9 @@ enum { | |||
196 | /* | 196 | /* |
197 | * io context count accounting | 197 | * io context count accounting |
198 | */ | 198 | */ |
199 | #define elv_ioc_count_mod(name, __val) \ | 199 | #define elv_ioc_count_mod(name, __val) this_cpu_add(name, __val) |
200 | do { \ | 200 | #define elv_ioc_count_inc(name) this_cpu_inc(name) |
201 | preempt_disable(); \ | 201 | #define elv_ioc_count_dec(name) this_cpu_dec(name) |
202 | __get_cpu_var(name) += (__val); \ | ||
203 | preempt_enable(); \ | ||
204 | } while (0) | ||
205 | |||
206 | #define elv_ioc_count_inc(name) elv_ioc_count_mod(name, 1) | ||
207 | #define elv_ioc_count_dec(name) elv_ioc_count_mod(name, -1) | ||
208 | 202 | ||
209 | #define elv_ioc_count_read(name) \ | 203 | #define elv_ioc_count_read(name) \ |
210 | ({ \ | 204 | ({ \ |