Re: [PATCH 14/14] mm, netfs, fscache: Stop read optimisation when folio removed from pagecache

From: Matthew Wilcox
Date: Wed Apr 06 2022 - 23:14:09 EST

On Thu, Apr 07, 2022 at 12:05:05AM +0100, David Howells wrote:
> Fix this by adding an extra address_space operation, ->removing folio(),
> and flag, AS_NOTIFY_REMOVING_FOLIO. The operation is called if the flag is
> set when a folio is removed from the pagecache. The flag should be set if
> a non-NULL cookie is obtained from fscache and cleared in ->evict_inode()
> before truncate_inode_pages_final() is called.

What's wrong with ->freepage?