]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
fix brd allocation flags
authorPetr Tesarik <ptesarik@suse.cz>
Tue, 22 Apr 2008 03:36:52 +0000 (05:36 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Apr 2008 20:38:03 +0000 (13:38 -0700)
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 <ptesarik@suse.cz>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/brd.c

index 85364804364fc3a058114b30379927dcd974621f..7bd76639544c18d78d8b4ed87fb6befb7dcf685d 100644 (file)
@@ -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;