]> 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>
Wed, 5 Apr 2023 23:02:45 +0000 (16:02 -0700)
commitdb8af28eb7cb0f0616a39c8d3567d30818ac3335
tree5893a34d7890dec55e7664df118e620218394d71
parent671e24797bd12087d134c5446eb8224977b852da
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