patch-2.3.24 linux/drivers/block/rd.c

Next file: linux/drivers/char/bttv.c
Previous file: linux/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -276,12 +276,9 @@
 
 static int initrd_release(struct inode *inode,struct file *file)
 {
-	unsigned long i;
-
-	if (--initrd_users) return 0;
-	for (i = initrd_start; i < initrd_end; i += PAGE_SIZE)
-		free_page(i);
 	initrd_start = 0;
+	/* No need to actually release the pages, because that is
+	   done later by free_all_bootmem. */
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)