bio-integrity.c: remove dependency on __GFP_NOFAIL
authorDavid Rientjes <rientjes@google.com>
Mon, 23 Aug 2010 11:35:09 +0000 (13:35 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 23 Aug 2010 11:36:58 +0000 (13:36 +0200)
The kmalloc() in bio_integrity_prep() is failable, so remove __GFP_NOFAIL
from its mask.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/bio-integrity.c

index 612a5c3..a8f4cc6 100644 (file)
@@ -413,7 +413,7 @@ int bio_integrity_prep(struct bio *bio)
 
        /* Allocate kernel buffer for protection data */
        len = sectors * blk_integrity_tuple_size(bi);
-       buf = kmalloc(len, GFP_NOIO | __GFP_NOFAIL | q->bounce_gfp);
+       buf = kmalloc(len, GFP_NOIO | q->bounce_gfp);
        if (unlikely(buf == NULL)) {
                printk(KERN_ERR "could not allocate integrity buffer\n");
                return -EIO;