Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344447
b: refs/heads/master
c: b042e47
h: refs/heads/master
i:
  344445: fb77ea1
  344443: 2d263db
  344439: 35ed4cd
  344431: 5e30950
  344415: b9509cb
  344383: 4dcb3c3
  344319: 06c8c6d
v: v3
  • Loading branch information
Maxime Bizon authored and Anton Vorontsov committed Nov 18, 2012
1 parent 221c2e3 commit a9e92ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 53f21a8ea1d76a002103ce20abd168fe83b20ee7
refs/heads/master: b042e47491ba5f487601b5141a3f1d8582304170
12 changes: 8 additions & 4 deletions trunk/fs/pstore/ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,14 @@ static int __devinit ramoops_probe(struct platform_device *pdev)
goto fail_out;
}

pdata->mem_size = rounddown_pow_of_two(pdata->mem_size);
pdata->record_size = rounddown_pow_of_two(pdata->record_size);
pdata->console_size = rounddown_pow_of_two(pdata->console_size);
pdata->ftrace_size = rounddown_pow_of_two(pdata->ftrace_size);
if (!is_power_of_2(pdata->mem_size))
pdata->mem_size = rounddown_pow_of_two(pdata->mem_size);
if (!is_power_of_2(pdata->record_size))
pdata->record_size = rounddown_pow_of_two(pdata->record_size);
if (!is_power_of_2(pdata->console_size))
pdata->console_size = rounddown_pow_of_two(pdata->console_size);
if (!is_power_of_2(pdata->ftrace_size))
pdata->ftrace_size = rounddown_pow_of_two(pdata->ftrace_size);

cxt->dump_read_cnt = 0;
cxt->size = pdata->mem_size;
Expand Down

0 comments on commit a9e92ac

Please sign in to comment.