mm/z3fold.c: avoid modifying HEADLESS page and minor cleanup
authorVitaly Wool <vitalywool@gmail.com>
Fri, 3 Jun 2016 21:55:47 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Jun 2016 23:02:55 +0000 (16:02 -0700)
commit43afc19417ca92cf237095947f597f21d86fd2a7
treea9976414d5dab53237a8b283aa5030b16a44adcb
parent3a06bb78ceeceacc86a1e31133a7944013f9775b
mm/z3fold.c: avoid modifying HEADLESS page and minor cleanup

Fix erroneous z3fold header access in a HEADLESS page in reclaim
function, and change one remaining direct handle-to-buddy conversion to
use the appropriate helper.

Link: http://lkml.kernel.org/r/5748706F.9020208@gmail.com
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Reviewed-by: Dan Streetman <ddstreet@ieee.org>
Cc: Seth Jennings <sjenning@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/z3fold.c