From: Herbert Xu <he...@go...> - 2007-05-09 23:39:46
|
Qi, Yanling <Yan...@ls...> wrote: > @@ -2571,6 +2572,13 @@ sg_page_malloc(int rqSz, int lowDma, int > resp = (char *) __get_free_pages(page_mask, order); > /* try half */ > resSz = a_size; > } > + tmppage = virt_to_page(resp); > + for( m = PAGE_SIZE; m < resSz; m += PAGE_SIZE ) > + { > + tmppage++; > + SetPageReserved(tmppage); > + } > + Why not just increase the page use count? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <he...@go...> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |