]> Pileus Git - ~andy/linux/blobdiff - mm/memory-failure.c
Merge tag 'stable/for-linus-3.12-rc0-tag' of git://git.kernel.org/pub/scm/linux/kerne...
[~andy/linux] / mm / memory-failure.c
index 2c13aa7a0164101a360e4f776090f6b183aab5ab..55d7c8026ab078215afff2fe3b088143bcd43f2d 100644 (file)
@@ -1286,7 +1286,10 @@ static void memory_failure_work_func(struct work_struct *work)
                spin_unlock_irqrestore(&mf_cpu->lock, proc_flags);
                if (!gotten)
                        break;
-               memory_failure(entry.pfn, entry.trapno, entry.flags);
+               if (entry.flags & MF_SOFT_OFFLINE)
+                       soft_offline_page(pfn_to_page(entry.pfn), entry.flags);
+               else
+                       memory_failure(entry.pfn, entry.trapno, entry.flags);
        }
 }