Re: loop-AES 1.4d crypto swap => __alloc_pages: 0-order allocationfailed (gfp=0x20/0) from c882256e

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 did that and it works now!

> Can you try this patch then, against original v1.4d
> 
>     cd loop-AES-v1.4d
>     patch -p0 < filename
>     make
> 
> Also, add this line to your /etc/modules.conf
> 
>     options loop lo_prealloc=150
> 
> Regards,
> Jari Ruusu <jari.ruusu@xxxxxxxxxx>
> 
> 
> --- loop.c-2.4.diff.old Sun Sep  2 21:33:01 2001
> +++ loop.c-2.4.diff Wed Sep 26 01:16:00 2001
> @@ -261,12 +261,12 @@
>  +        memset(bh, 0, sizeof(struct buffer_head));
>  +        bh->b_page = p;
>  +    } else {
> -+        bh = kmem_cache_alloc(bh_cachep, SLAB_ATOMIC);
> ++        bh = 0; /* kmem_cache_alloc(bh_cachep, SLAB_ATOMIC); */
>  +        if(!bh) {
>  +            return((struct buffer_head *)0);
>  +        }
>  +        memset(bh, 0, sizeof(struct buffer_head));
> -+        bh->b_page = alloc_page(GFP_ATOMIC);
> ++        bh->b_page = 0; /* alloc_page(GFP_ATOMIC); */
>  +        if(!bh->b_page) {
>  +            kmem_cache_free(bh_cachep, bh);
>  +            return((struct buffer_head *)0);
> 

 


Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux