]> www.infradead.org Git - users/jedix/linux-maple.git/commit
afs: split afs_pagecache_valid() out of afs_validate()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Mar 2023 17:45:14 +0000 (18:45 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:25:19 +0000 (16:25 -0700)
commit4be3e0645188344497782aea451ccce3ab9ea3d8
treede8068798c166c8b4ec1346c5e95d019ebac08e8
parente7bc23d4f52d140cfc39a7ef5513dc0974c1994b
afs: split afs_pagecache_valid() out of afs_validate()

For the map_pages() method, we need a test that does not sleep.  The page
fault handler will continue to call the fault() method where we can sleep
and do the full revalidation there.

Link: https://lkml.kernel.org/r/20230327174515.1811532-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Howells <dhowells@redhat.com>
Tested-by: David Howells <dhowells@redhat.com>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/afs/file.c
fs/afs/inode.c
fs/afs/internal.h