Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42717
b: refs/heads/master
c: 8594912
h: refs/heads/master
i:
  42715: e0bef32
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Dec 7, 2006
1 parent 7e38167 commit 6bae33b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8357376d3df21b7d6f857931a57ac50da9c66e26
refs/heads/master: 859491218770315ba95ee3fa09961fc71c506cae
6 changes: 3 additions & 3 deletions trunk/kernel/power/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static int submit(int rw, pgoff_t page_off, struct page *page,
{
struct bio *bio;

bio = bio_alloc(GFP_ATOMIC, 1);
bio = bio_alloc(__GFP_WAIT | __GFP_HIGH, 1);
if (!bio)
return -ENOMEM;
bio->bi_sector = page_off * (PAGE_SIZE >> 9);
Expand Down Expand Up @@ -216,7 +216,7 @@ static int write_page(void *buf, sector_t offset, struct bio **bio_chain)
return -ENOSPC;

if (bio_chain) {
src = (void *)__get_free_page(GFP_ATOMIC);
src = (void *)__get_free_page(__GFP_WAIT | __GFP_HIGH);
if (src) {
memcpy(src, buf, PAGE_SIZE);
} else {
Expand Down Expand Up @@ -473,7 +473,7 @@ static int get_swap_reader(struct swap_map_handle *handle, sector_t start)
if (!start)
return -EINVAL;

handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_ATOMIC);
handle->cur = (struct swap_map_page *)get_zeroed_page(__GFP_WAIT | __GFP_HIGH);
if (!handle->cur)
return -ENOMEM;

Expand Down

0 comments on commit 6bae33b

Please sign in to comment.