2.1.80pre[3-4] __get_free_pages patches

Matthew Harrell (mharrell@std.saic.com)
Sat, 17 Jan 1998 00:54:57 -0500 (EST)


--ELM885016497-10494-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Here are a couple of patches I had to apply to the pre3 and pre4 kernels to
get them to compile. I think they're correct - I looked at what the patches
themselves had done.

-- 
  Matthew Harrell                          Never raise your hand to your 
  Simulation Technology Division, SAIC      children - it leaves your
  mharrell@std.saic.com                     midsection unprotected.

--ELM885016497-10494-0_ Content-Type: text/plain; charset=KOI8-R Content-Disposition: attachment; filename=get_free_pages.patch Content-Description: get_free_pages.patch Content-Transfer-Encoding: 7bit

diff -urN linux/drivers/block/raid5.c.ori linux/drivers/block/raid5.c --- linux/drivers/block/raid5.c.ori Sat Jan 17 00:53:15 1998 +++ linux/drivers/block/raid5.c Sat Jan 17 00:55:03 1998 @@ -1372,7 +1372,7 @@ memset (raid_conf, 0, sizeof (*raid_conf)); raid_conf->mddev = mddev; - if ((raid_conf->stripe_hashtbl = (struct stripe_head **) __get_free_pages(GFP_ATOMIC, HASH_PAGES_ORDER, 0)) == NULL) + if ((raid_conf->stripe_hashtbl = (struct stripe_head **) __get_free_pages(GFP_ATOMIC, HASH_PAGES_ORDER)) == NULL) goto abort; memset(raid_conf->stripe_hashtbl, 0, HASH_PAGES * PAGE_SIZE); diff -urN linux/drivers/sound/soundcard.c.ori linux/drivers/sound/soundcard.c --- linux/drivers/sound/soundcard.c.ori Sat Jan 17 01:00:44 1998 +++ linux/drivers/sound/soundcard.c Sat Jan 17 01:01:45 1998 @@ -1100,7 +1100,7 @@ dmap->buffsize = PAGE_SIZE * (1 << sz); - if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC, sz, MAX_DMA_ADDRESS)) == NULL) + if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC, sz)) == NULL) dmap->buffsize /= 2; }

--ELM885016497-10494-0_--