[PATCH 06/14] SQUASHME pnfs_submit: remove unused nfs4_pnfs_device_put

andros
2010-04-08T19:54:57Z

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