diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2008-04-21 23:36:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-22 16:38:03 -0400 |
commit | 26defe34e48e18b058b773f60467729c64917490 (patch) | |
tree | e186efc0a8661110b119c18a74089788097298bb /drivers/block/brd.c | |
parent | 807501475fce0ebe68baedf87f202c3e4ee0d12c (diff) |
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 <ptesarik@suse.cz>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/brd.c')
-rw-r--r-- | drivers/block/brd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 85364804364f..7bd76639544c 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) | |||
108 | #ifndef CONFIG_BLK_DEV_XIP | 108 | #ifndef CONFIG_BLK_DEV_XIP |
109 | gfp_flags |= __GFP_HIGHMEM; | 109 | gfp_flags |= __GFP_HIGHMEM; |
110 | #endif | 110 | #endif |
111 | page = alloc_page(GFP_NOIO | __GFP_HIGHMEM | __GFP_ZERO); | 111 | page = alloc_page(gfp_flags); |
112 | if (!page) | 112 | if (!page) |
113 | return NULL; | 113 | return NULL; |
114 | 114 | ||