z3fold: fix stale list handling
authorVitaly Wool <vitalywool@gmail.com>
Tue, 3 Oct 2017 23:15:06 +0000 (16:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Oct 2017 00:54:24 +0000 (17:54 -0700)
commit3552935742e0d5f0dafd823736f45bdaa7ba672c
tree43039ba93ba9302c5ff1dc10716510d104f1d8c0
parent6818600ff094ca255a7fe31838ad50c29656c3c5
z3fold: fix stale list handling

Fix the situation when clear_bit() is called for page->private before
the page pointer is actually assigned.  While at it, remove work_busy()
check because it is costly and does not give 100% guarantee anyway.

Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: <Oleksiy.Avramchenko@sony.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/z3fold.c