pNFS: rework pnfs_generic_pg_check_layout to check IO range
authorOlga Kornievskaia <kolga@netapp.com>
Fri, 10 May 2024 19:07:43 +0000 (15:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 21 May 2024 12:34:15 +0000 (08:34 -0400)
commita01b077a8743b2ed329c587cf4bbe49682da243f
tree91ad031373204393538bc8452a6588cd147ea297
parent523412b904c4ad2e9649d536bde0e6c75c88638b
pNFS: rework pnfs_generic_pg_check_layout to check IO range

All callers of pnfs_generic_pg_check_layout() also want to do a call to
check that the layout's range covers the IO range. Merge the functionality
of the pnfs_generic_pg_check_range() into that of
pnfs_generic_pg_check_layout().

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/filelayout/filelayout.c
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h