diff options
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 65daae59c8ae..48d0a8e4d062 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -295,8 +295,10 @@ static inline int pnfs_return_layout(struct inode *ino) | |||
295 | static inline void pnfs_pageio_init(struct nfs_pageio_descriptor *pgio, | 295 | static inline void pnfs_pageio_init(struct nfs_pageio_descriptor *pgio, |
296 | struct inode *inode) | 296 | struct inode *inode) |
297 | { | 297 | { |
298 | if (NFS_SERVER(inode)->pnfs_curr_ld) | 298 | struct pnfs_layoutdriver_type *ld = NFS_SERVER(inode)->pnfs_curr_ld; |
299 | pgio->pg_test = pnfs_generic_pg_test; | 299 | |
300 | if (ld) | ||
301 | pgio->pg_test = ld->pg_test; | ||
300 | } | 302 | } |
301 | 303 | ||
302 | #else /* CONFIG_NFS_V4_1 */ | 304 | #else /* CONFIG_NFS_V4_1 */ |