From: Andy Adamson <andros@xxxxxxxxxx> Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/pnfs.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 442ebf6..3bd7e87 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -296,9 +296,10 @@ static inline int pnfs_scan_commit_lists(struct inode *inode, int max, spinlock_t *lock) { struct pnfs_layoutdriver_type *ld = NFS_SERVER(inode)->pnfs_curr_ld; + struct pnfs_layout_hdr *lh = NFS_I(inode)->layout; int ret; - if (ld == NULL || ld->scan_commit_lists == NULL) + if (ld == NULL || ld->scan_commit_lists == NULL || lh == NULL) return 0; ret = ld->scan_commit_lists(inode, max, lock); if (ret != 0) -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html