From: Andy Adamson <andros@xxxxxxxxxx> In preparation to use the generic deviceid cache. Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/nfs4filelayoutdev.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c index 9844a9c..bb8a84a 100644 --- a/fs/nfs/nfs4filelayoutdev.c +++ b/fs/nfs/nfs4filelayoutdev.c @@ -601,19 +601,19 @@ out_err: * Must at some point be followed up with nfs4_pnfs_device_destroy */ static struct nfs4_file_layout_dsaddr* -decode_and_add_device(struct filelayout_mount_type *mt, struct pnfs_device *dev) +decode_and_add_device(struct inode *inode, struct pnfs_device *dev) { struct nfs4_file_layout_dsaddr *dsaddr; - dsaddr = decode_device(mt, dev); + dsaddr = decode_device(FILE_MT(inode), dev); if (!dsaddr) { printk(KERN_WARNING "%s: Could not decode device\n", __func__); - nfs4_pnfs_device_destroy(dsaddr, mt->hlist); + nfs4_pnfs_device_destroy(dsaddr, FILE_MT(inode)->hlist); return NULL; } - if (nfs4_pnfs_device_add(mt, dsaddr)) + if (nfs4_pnfs_device_add(FILE_MT(inode), dsaddr)) return NULL; return dsaddr; @@ -681,7 +681,7 @@ retry_once: /* Found new device, need to decode it and then add it to the * list of known devices for this mountpoint. */ - dsaddr = decode_and_add_device(FILE_MT(inode), pdev); + dsaddr = decode_and_add_device(inode, pdev); out_free: if (minpages > 1 && pdev->area != NULL) vunmap(pdev->area); -- 1.6.6 -- 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