Re: [PATCH v2] mm: shmem: implement POSIX_FADV_[WILL|DONT]NEED for shmem

From: Charan Teja Kalla
Date: Fri Dec 03 2021 - 08:02:35 EST




On 12/2/2021 8:29 PM, Matthew Wilcox wrote:
>> + list_add(&page->lru, list);
>> + inc_node_page_state(page, NR_ISOLATED_ANON +
>> + page_is_file_lru(page));
> ... what if the page is a THP?

Will take care of THP pages in the next spin. Thanks for pointing it out.

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum, a Linux Foundation Collaborative Project