mm/memory-failure.c: fix wrong user reference report
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:01:15 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:15 +0000 (10:01 +1100)
commitc040b64d184fe84910ab04260f4d29b6f1b7f6cd
tree53921913b3988015373ef4bfb2b2bf460e785e26
parent73f343517b0e1044692a01d879b66c83e072a264
mm/memory-failure.c: fix wrong user reference report

The dirty swapcache page is still residing in the swap cache after it's
hwpoisoned.  So there is always one extra refcount for swap cache.

Link: https://lkml.kernel.org/r/20220228140245.24552-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/memory-failure.c