aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2011-05-24 11:04:02 -0400
committerBoaz Harrosh <bharrosh@panasas.com>2011-05-29 13:52:31 -0400
commit35c8bb543c9e83197e6375142d1d1c2ee3cf017d (patch)
treef0f8a69c1586a8d24526223ed70a922c934f9b87 /fs/nfs/pnfs.h
parent1be5683b03a766670b3b629bf6bfeab3ca9239d8 (diff)
NFSv4.1: use layout driver in global device cache
pnfs deviceids are unique per server, per layout type. struct nfs_client is currently used to distinguish deviceids from different nfs servers, yet these may clash between different layout types on the same server. Therefore, use the layout driver associated with each deviceid at insertion time to look it up, unhash, or delete it. Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index fbd3f7cd9e71..5b083d295334 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -171,9 +171,9 @@ struct nfs4_deviceid_node {
171}; 171};
172 172
173void nfs4_print_deviceid(const struct nfs4_deviceid *dev_id); 173void nfs4_print_deviceid(const struct nfs4_deviceid *dev_id);
174struct nfs4_deviceid_node *nfs4_find_get_deviceid(const struct nfs_client *, const struct nfs4_deviceid *); 174struct nfs4_deviceid_node *nfs4_find_get_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *);
175struct nfs4_deviceid_node *nfs4_unhash_put_deviceid(const struct nfs_client *, const struct nfs4_deviceid *); 175struct nfs4_deviceid_node *nfs4_unhash_put_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *);
176void nfs4_delete_deviceid(const struct nfs_client *, const struct nfs4_deviceid *); 176void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *);
177void nfs4_init_deviceid_node(struct nfs4_deviceid_node *, 177void nfs4_init_deviceid_node(struct nfs4_deviceid_node *,
178 const struct pnfs_layoutdriver_type *, 178 const struct pnfs_layoutdriver_type *,
179 const struct nfs_client *, 179 const struct nfs_client *,