patch-2.4.8 linux/include/linux/blkdev.h
Next file: linux/include/linux/byteorder/swab.h
Previous file: linux/include/asm-sparc64/mmu_context.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Aug 10 18:15:40 2001
- Orig file:
v2.4.7/linux/include/linux/blkdev.h
- Orig date:
Tue Aug 7 12:50:31 2001
diff -u --recursive --new-file v2.4.7/linux/include/linux/blkdev.h linux/include/linux/blkdev.h
@@ -14,9 +14,7 @@
/*
* Ok, this is an expanded form so that we can use the same
- * request for paging requests when that is implemented. In
- * paging, 'bh' is NULL, and the completion is used to wait
- * for the IO to be ready.
+ * request for paging requests.
*/
struct request {
struct list_head queue;
@@ -176,8 +174,6 @@
extern int * max_segments[MAX_BLKDEV];
-extern atomic_t queued_sectors;
-
#define MAX_SEGMENTS 128
#define MAX_SECTORS 255
@@ -205,14 +201,7 @@
return 512;
}
-#define blk_finished_io(nsects) \
- atomic_sub(nsects, &queued_sectors); \
- if (atomic_read(&queued_sectors) < 0) { \
- printk("block: queued_sectors < 0\n"); \
- atomic_set(&queued_sectors, 0); \
- }
-
-#define blk_started_io(nsects) \
- atomic_add(nsects, &queued_sectors);
+#define blk_finished_io(nsects) do { } while (0)
+#define blk_started_io(nsects) do { } while (0)
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)