Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376980
b: refs/heads/master
c: 7b57976
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jun 12, 2013
1 parent bc757e7 commit cdb2d1f
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 736f3203a06eafd0944103775a98584082744c6b
refs/heads/master: 7b57976da48e60b66fdbb9e97f5711b5382a49d7
2 changes: 1 addition & 1 deletion trunk/mm/frontswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void __frontswap_invalidate_area(unsigned type)
return;
frontswap_ops->invalidate_area(type);
atomic_set(&sis->frontswap_pages, 0);
memset(sis->frontswap_map, 0, sis->max / sizeof(long));
bitmap_zero(sis->frontswap_map, sis->max);
}
clear_bit(type, need_init);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
}
/* frontswap enabled? set up bit-per-page map for frontswap */
if (frontswap_enabled)
frontswap_map = vzalloc(maxpages / sizeof(long));
frontswap_map = vzalloc(BITS_TO_LONGS(maxpages) * sizeof(long));

if (p->bdev) {
if (blk_queue_nonrot(bdev_get_queue(p->bdev))) {
Expand Down

0 comments on commit cdb2d1f

Please sign in to comment.