Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98369
b: refs/heads/master
c: 71c2742
h: refs/heads/master
i:
  98367: 02581e5
v: v3
  • Loading branch information
Bernhard Walle authored and Linus Torvalds committed Jun 21, 2008
1 parent 8f44368 commit 81fd184
Show file tree
Hide file tree
Showing 3 changed files with 6 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: a19214430d27a3af6f1672ec26f3c893ef899ede
refs/heads/master: 71c2742f5e6348d76ee62085cf0a13e5eff0f00e
2 changes: 1 addition & 1 deletion trunk/include/linux/bootmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extern unsigned long init_bootmem_node(pg_data_t *pgdat,
unsigned long freepfn,
unsigned long startpfn,
unsigned long endpfn);
extern void reserve_bootmem_node(pg_data_t *pgdat,
extern int reserve_bootmem_node(pg_data_t *pgdat,
unsigned long physaddr,
unsigned long size,
int flags);
Expand Down
6 changes: 4 additions & 2 deletions trunk/mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,17 @@ unsigned long __init init_bootmem_node(pg_data_t *pgdat, unsigned long freepfn,
return init_bootmem_core(pgdat, freepfn, startpfn, endpfn);
}

void __init reserve_bootmem_node(pg_data_t *pgdat, unsigned long physaddr,
int __init reserve_bootmem_node(pg_data_t *pgdat, unsigned long physaddr,
unsigned long size, int flags)
{
int ret;

ret = can_reserve_bootmem_core(pgdat->bdata, physaddr, size, flags);
if (ret < 0)
return;
return -ENOMEM;
reserve_bootmem_core(pgdat->bdata, physaddr, size, flags);

return 0;
}

void __init free_bootmem_node(pg_data_t *pgdat, unsigned long physaddr,
Expand Down

0 comments on commit 81fd184

Please sign in to comment.