Initial INC MR3 commit with EVO/BRAVO included and majority of the compile warnings ...
/mm/swapfile.c
blob:9c590eef79122dc0597dac27912f60e6b7dc6a72 -> blob:270e136349a0efc72359ad37e9956e65ba4a4eef
--- mm/swapfile.c
+++ mm/swapfile.c
@@ -330,8 +330,10 @@ checks:
if (offset > si->highest_bit)
scan_base = offset = si->lowest_bit;
- /* reuse swap entry of cache-only swap if not busy. */
- if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) {
+ /* reuse swap entry of cache-only swap if not hibernation. */
+ if (vm_swap_full()
+ && cache == SWAP_CACHE
+ && si->swap_map[offset] == SWAP_HAS_CACHE) {
int swap_was_freed;
spin_unlock(&swap_lock);
swap_was_freed = __try_to_reclaim_swap(si, offset);