Message ID | ZNaKoWbYyOveesVc@casper.infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add and use bdev_getblk() | expand |
diff --git a/fs/buffer.c b/fs/buffer.c index 122b7d16befb..b551a5b1196b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1470,7 +1470,9 @@ EXPORT_SYMBOL(__getblk_gfp); */ void __breadahead(struct block_device *bdev, sector_t block, unsigned size) { - struct buffer_head *bh = __getblk(bdev, block, size); + struct buffer_head *bh = bdev_getblk(bdev, block, size, + GFP_NOWAIT | __GFP_MOVABLE | __GFP_ACCOUNT); + if (likely(bh)) { bh_readahead(bh, REQ_RAHEAD); brelse(bh);