aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2011-05-25 13:54:40 -0400
committerBoaz Harrosh <bharrosh@panasas.com>2011-05-29 13:56:55 -0400
commit89a58e32d9105c01022a757fb32ddc3b51bf0025 (patch)
treefd04ff022a084339868e81fc9a4679667c2b70bd /fs/nfs/pnfs.c
parent18ad0a9f2ccd260d37dd6bc5fa04c7819def4c84 (diff)
NFSv4.1: use pnfs_generic_pg_test directly by layout driver
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 212fc292761a..d79f2df33a46 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -1067,12 +1067,17 @@ pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev,
1067 pgio->pg_count, 1067 pgio->pg_count,
1068 access_type, 1068 access_type,
1069 gfp_flags); 1069 gfp_flags);
1070 } else if (pgio->pg_lseg && 1070 return true;
1071 req_offset(req) > end_offset(pgio->pg_lseg->pls_range.offset, 1071 }
1072 pgio->pg_lseg->pls_range.length)) 1072
1073 if (pgio->pg_lseg &&
1074 req_offset(req) > end_offset(pgio->pg_lseg->pls_range.offset,
1075 pgio->pg_lseg->pls_range.length))
1073 return false; 1076 return false;
1074 return NFS_SERVER(pgio->pg_inode)->pnfs_curr_ld->pg_test(pgio, prev, req); 1077
1078 return true;
1075} 1079}
1080EXPORT_SYMBOL_GPL(pnfs_generic_pg_test);
1076 1081
1077/* 1082/*
1078 * Called by non rpc-based layout drivers 1083 * Called by non rpc-based layout drivers