On February 23, 2017 2:51 AM Shaohua Li wrote: > > Johannes pointed out TTU_LZFREE is unnecessary. It's true because we > always have the flag set if we want to do an unmap. For cases we don't > do an unmap, the TTU_LZFREE part of code should never run. > > Also the TTU_UNMAP is unnecessary. If no other flags set (for > example, TTU_MIGRATION), an unmap is implied. > > Cc: Michal Hocko <[email protected]> > Cc: Minchan Kim <[email protected]> > Cc: Hugh Dickins <[email protected]> > Cc: Rik van Riel <[email protected]> > Cc: Mel Gorman <[email protected]> > Cc: Andrew Morton <[email protected]> > Suggested-by: Johannes Weiner <[email protected]> > Signed-off-by: Shaohua Li <[email protected]> > ---
Acked-by: Hillf Danton <[email protected]>

