z3fold: fix stale list handling
authorVitaly Wool <[email protected]>
Tue, 3 Oct 2017 23:15:06 +0000 (16:15 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/z3fold.c