NFSv4.1: use pnfs_generic_pg_test directly by layout driver
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
This commit is contained in:

committed by
Boaz Harrosh

parent
18ad0a9f2c
commit
89a58e32d9
@@ -295,8 +295,10 @@ static inline int pnfs_return_layout(struct inode *ino)
|
||||
static inline void pnfs_pageio_init(struct nfs_pageio_descriptor *pgio,
|
||||
struct inode *inode)
|
||||
{
|
||||
if (NFS_SERVER(inode)->pnfs_curr_ld)
|
||||
pgio->pg_test = pnfs_generic_pg_test;
|
||||
struct pnfs_layoutdriver_type *ld = NFS_SERVER(inode)->pnfs_curr_ld;
|
||||
|
||||
if (ld)
|
||||
pgio->pg_test = ld->pg_test;
|
||||
}
|
||||
|
||||
#else /* CONFIG_NFS_V4_1 */
|
||||
|
Reference in New Issue
Block a user