Skip to content

Commit

Permalink
bio-integrity.c: remove dependency on __GFP_NOFAIL
Browse files Browse the repository at this point in the history
The kmalloc() in bio_integrity_prep() is failable, so remove __GFP_NOFAIL
from its mask.

Signed-off-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
rientjes authored and Jens Axboe committed Aug 23, 2010
1 parent 5e00d1b commit 72f4650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72f4650

Please sign in to comment.