[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZsjtOVMD2dxRw68H@casper.infradead.org>
Date: Fri, 23 Aug 2024 21:12:41 +0100
From: Matthew Wilcox <willy@...radead.org>
To: David Howells <dhowells@...hat.com>
Cc: Christian Brauner <christian@...uner.io>,
Steve French <sfrench@...ba.org>,
Pankaj Raghav <p.raghav@...sung.com>,
Paulo Alcantara <pc@...guebit.com>,
Jeff Layton <jlayton@...nel.org>, netfs@...ts.linux.dev,
linux-afs@...ts.infradead.org, linux-cifs@...r.kernel.org,
linux-nfs@...r.kernel.org, ceph-devel@...r.kernel.org,
v9fs@...ts.linux.dev, linux-erofs@...ts.ozlabs.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Marc Dionne <marc.dionne@...istor.com>
Subject: Re: [PATCH 1/9] mm: Fix missing folio invalidation calls during
truncation
On Fri, Aug 23, 2024 at 09:08:09PM +0100, David Howells wrote:
> When AS_RELEASE_ALWAYS is set on a mapping, the ->release_folio() and
> ->invalidate_folio() calls should be invoked even if PG_private and
> PG_private_2 aren't set. This is used by netfslib to keep track of the
> point above which reads can be skipped in favour of just zeroing pagecache
> locally.
>
> There are a couple of places in truncation in which invalidation is only
> called when folio_has_private() is true. Fix these to check
> folio_needs_release() instead.
Reviewed-by: Matthew Wilcox (Oracle) <willy@...radead.org>
I think we also want to change the folio_has_private() call in
mapping_evict_folio() to folio_test_private(). Same for the one
in migrate_vma_check_page().
Powered by blists - more mailing lists