From: Petr Tesarik Date: Tue, 22 Apr 2008 03:36:52 +0000 (+0200) Subject: fix brd allocation flags X-Git-Tag: v2.6.26-rc1~1109 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26defe34e48e18b058b773f60467729c64917490;p=linux-2.6 fix brd allocation flags While looking at the implementation of the Ram backed block device driver, I stumbled across a write-only local variable, which makes little sense, so I assume it should actually work like this: Signed-off-by: Petr Tesarik Signed-off-by: Nick Piggin Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 8536480436..7bd7663954 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -108,7 +108,7 @@ static struct page *brd_insert_page(struct brd_device *brd, sector_t sector) #ifndef CONFIG_BLK_DEV_XIP gfp_flags |= __GFP_HIGHMEM; #endif - page = alloc_page(GFP_NOIO | __GFP_HIGHMEM | __GFP_ZERO); + page = alloc_page(gfp_flags); if (!page) return NULL;