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>
Thu, 6 Apr 2023 02:43:00 +0000 (19:43 -0700)
commit0050d7f5ee532f92e8ab1efcec6547bfac527973
tree85000911fdb454e147b54e7a4969a9eff2407506
parent945ea457b5a57cd34cbacce6f1f9e4a2e88432c2
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