Re: [PATCH] mm/lru: simplify is_file_lru() and is_active_lru()

From: Matthew Wilcox
Date: Tue Nov 17 2020 - 12:40:57 EST


On Wed, Nov 18, 2020 at 12:49:19AM +0800, Hui Su wrote:
> page->lru bit 0 can tell whether the page is
> avtive page or not.
> page->lru bit 1 can tell whether the page is
> file page or not.

This is wrong. I'll let you figure out why.