diff options
Diffstat (limited to 'drivers/misc/vmw_balloon.c')
| -rw-r--r-- | drivers/misc/vmw_balloon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index 053d36caf955..cd41d403c9df 100644 --- a/drivers/misc/vmw_balloon.c +++ b/drivers/misc/vmw_balloon.c | |||
| @@ -151,7 +151,7 @@ MODULE_LICENSE("GPL"); | |||
| 151 | struct vmballoon_stats { | 151 | struct vmballoon_stats { |
| 152 | unsigned int timer; | 152 | unsigned int timer; |
| 153 | 153 | ||
| 154 | /* allocation statustics */ | 154 | /* allocation statistics */ |
| 155 | unsigned int alloc; | 155 | unsigned int alloc; |
| 156 | unsigned int alloc_fail; | 156 | unsigned int alloc_fail; |
| 157 | unsigned int sleep_alloc; | 157 | unsigned int sleep_alloc; |
| @@ -412,6 +412,7 @@ static int vmballoon_reserve_page(struct vmballoon *b, bool can_sleep) | |||
| 412 | gfp_t flags; | 412 | gfp_t flags; |
| 413 | unsigned int hv_status; | 413 | unsigned int hv_status; |
| 414 | bool locked = false; | 414 | bool locked = false; |
| 415 | flags = can_sleep ? VMW_PAGE_ALLOC_CANSLEEP : VMW_PAGE_ALLOC_NOSLEEP; | ||
| 415 | 416 | ||
| 416 | do { | 417 | do { |
| 417 | if (!can_sleep) | 418 | if (!can_sleep) |
| @@ -419,7 +420,6 @@ static int vmballoon_reserve_page(struct vmballoon *b, bool can_sleep) | |||
| 419 | else | 420 | else |
| 420 | STATS_INC(b->stats.sleep_alloc); | 421 | STATS_INC(b->stats.sleep_alloc); |
| 421 | 422 | ||
| 422 | flags = can_sleep ? VMW_PAGE_ALLOC_CANSLEEP : VMW_PAGE_ALLOC_NOSLEEP; | ||
| 423 | page = alloc_page(flags); | 423 | page = alloc_page(flags); |
| 424 | if (!page) { | 424 | if (!page) { |
| 425 | if (!can_sleep) | 425 | if (!can_sleep) |
