PATCH - md 3 of 22 - Remove md_maxreadahead

From: Neil Brown <hidden>
Date: 2002-06-19 00:47:46


..as it is nolonger used.

 ----------- Diffstat output ------------
 ./drivers/md/md.c |    3 ---
 1 files changed, 3 deletions(-)
--- ./drivers/md/md.c	2002/06/18 03:26:36	1.3
+++ ./drivers/md/md.c	2002/06/18 03:31:03	1.4
@@ -106,7 +106,6 @@
  * subsystems want to have a pre-defined structure
  */
 struct hd_struct md_hd_struct[MAX_MD_DEVS];
-static int md_maxreadahead[MAX_MD_DEVS];
 static mdk_thread_t *md_recovery_thread;
 
 int md_size[MAX_MD_DEVS];
@@ -1579,7 +1578,6 @@
 		if (sb->level == -3)
 			readahead = 0;
 	}
-	md_maxreadahead[mdidx(mddev)] = readahead;
 
 	printk(KERN_INFO "md%d: max total readahead window set to %ldk\n",
 		mdidx(mddev), readahead*(PAGE_SIZE/1024));
@@ -3614,7 +3612,6 @@
 
 	for(i = 0; i < MAX_MD_DEVS; i++) {
 		md_size[i] = 0;
-		md_maxreadahead[i] = 32;
 	}
 	blk_size[MAJOR_NR] = md_size;
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help