projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hwmon: (adt7470) Fix incorrect return code check
[firefly-linux-kernel-4.4.55.git]
/
mm
/
frontswap.c
diff --git
a/mm/frontswap.c
b/mm/frontswap.c
index 538367ef137270b768481a42e2bf2ee504d0ada2..1b24bdcb3197492674b0d6d0c128f9928fb977b1 100644
(file)
--- a/
mm/frontswap.c
+++ b/
mm/frontswap.c
@@
-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);
}