summaryrefslogtreecommitdiff
path: root/include/linux/elevator.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 17:57:11 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 17:57:11 -0800
commitc8ebfc888f9ee93f2dc7cd62b3be66263755d99a (patch)
treef449a3433c022ed8fd9aaa8f291a1b4e354fd5b9 /include/linux/elevator.h
parent5d12a58c4049a4839abbbdf87dd189505513b1b6 (diff)
v2.4.1.2 -> v2.4.1.3
- Jens: better ordering of requests when unable to merge - Neil Brown: make md work as a module again (we cannot autodetect in modules, not enough background information) - Neil Brown: raid5 SMP locking cleanups - Neil Brown: nfsd: handle Irix NFS clients named pipe behavior and dentry leak fix - maestro3 shutdown fix - fix dcache hash calculation that could cause bad hashes under certain circumstances (Dean Gaudet) - David Miller: networking and sparc updates - Jeff Garzik: include file cleanups - Andy Grover: ACPI update - Coda-fs error return fixes - rth: alpha Jensen update
Diffstat (limited to 'include/linux/elevator.h')
-rw-r--r--include/linux/elevator.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h
index 9e9b27dfa07e..9071feeaee2f 100644
--- a/include/linux/elevator.h
+++ b/include/linux/elevator.h
@@ -1,8 +1,6 @@
#ifndef _LINUX_ELEVATOR_H
#define _LINUX_ELEVATOR_H
-#define ELEVATOR_DEBUG
-
typedef void (elevator_fn) (struct request *, elevator_t *,
struct list_head *,
struct list_head *, int);
@@ -68,8 +66,9 @@ extern void elevator_init(elevator_t *, elevator_t);
(s1)->rq_dev < (s2)->rq_dev)
#define BHRQ_IN_ORDER(bh, rq) \
- (((bh)->b_rdev == (rq)->rq_dev && \
- (bh)->b_rsector < (rq)->sector))
+ ((((bh)->b_rdev == (rq)->rq_dev && \
+ (bh)->b_rsector < (rq)->sector)) || \
+ (bh)->b_rdev < (rq)->rq_dev)
static inline int elevator_request_latency(elevator_t * elevator, int rw)
{