Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252038
b: refs/heads/master
c: 33278f7
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed May 27, 2011
1 parent 3547977 commit e69f5df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 268433b8e54486b12478e94ba18587bcc7de4d57
refs/heads/master: 33278f7f0a9e5a9b29f59e07b7e3182d27769ac2
2 changes: 1 addition & 1 deletion trunk/mm/page_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
if (!do_swap_account)
return 0;

length = ((max_pages/SC_PER_PAGE) + 1);
length = DIV_ROUND_UP(max_pages, SC_PER_PAGE);
array_size = length * sizeof(void *);

array = vmalloc(array_size);
Expand Down

0 comments on commit e69f5df

Please sign in to comment.