Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359543
b: refs/heads/master
c: 087ffec
h: refs/heads/master
i:
  359541: f7226ea
  359539: 3e45b88
  359535: b4b1588
v: v3
  • Loading branch information
Roger Pau Monne authored and Konrad Rzeszutek Wilk committed Feb 19, 2013
1 parent 9bbd6ee commit 3794fd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: f84adf4921ae3115502f44ff467b04bf2f88cf04
refs/heads/master: 087ffecdaa1875cc683a7a5bc0695b3ebfce3bad
6 changes: 4 additions & 2 deletions trunk/drivers/block/xen-blkback/blkback.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <xen/xen.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
#include <xen/balloon.h>
#include "common.h"

/*
Expand Down Expand Up @@ -239,6 +240,7 @@ static void free_persistent_gnts(struct rb_root *root, unsigned int num)
ret = gnttab_unmap_refs(unmap, NULL, pages,
segs_to_unmap);
BUG_ON(ret);
free_xenballooned_pages(segs_to_unmap, pages);
segs_to_unmap = 0;
}

Expand Down Expand Up @@ -527,8 +529,8 @@ static int xen_blkbk_map(struct blkif_request *req,
GFP_KERNEL);
if (!persistent_gnt)
return -ENOMEM;
persistent_gnt->page = alloc_page(GFP_KERNEL);
if (!persistent_gnt->page) {
if (alloc_xenballooned_pages(1, &persistent_gnt->page,
false)) {
kfree(persistent_gnt);
return -ENOMEM;
}
Expand Down

0 comments on commit 3794fd9

Please sign in to comment.