From: Andy Adamson <andros@xxxxxxxxxx> Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/nfs4filelayoutdev.c | 21 --------------------- 1 files changed, 0 insertions(+), 21 deletions(-) diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c index 99a7ceb..db6817d 100644 --- a/fs/nfs/nfs4filelayoutdev.c +++ b/fs/nfs/nfs4filelayoutdev.c @@ -795,24 +795,3 @@ nfs4_pnfs_dserver_get(struct pnfs_layout_segment *lseg, return 0; } - -/* Currently not used. - * I have disabled checking the device count until we can think of a good way - * to call nfs4_pnfs_device_put in a generic way from the pNFS client. - * The only way I think think of is to put the nfs4_file_layout_dsaddr directly - * in the nfs4_write/read_data structure, which breaks the clear line between - * the pNFS client and layout drivers. If I did do this, then I could call - * an ioctl on the NFSv4 file layout driver to decrement the device count. - */ -#if 0 -static void -nfs4_pnfs_device_put(struct nfs_server *server, - struct nfs4_pnfs_dev_hlist *hlist, - struct nfs4_file_layout_dsaddr *dsaddr) -{ - dprintk("nfs4_pnfs_device_put: dev_id=%u\n", dsaddr->dev_id); - /* XXX Do we need to invoke this put_client? */ - /* server->rpc_ops->put_client(dsaddr->clp); */ - atomic_dec(&dsaddr->count); -} -#endif -- 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