From 37dbeea3430745f4c062e8681f594bae33f7be73 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 12 Sep 2002 01:42:25 -0700 Subject: [PATCH] kNFSd 12: Change exp_parent to talk directory tree, not hash table. Currently get_parent (needed to find the exportpoint above a given dentry) walks the hash table of export points checking each with is_subdir. Now it walks up the d_parent link checking each for membership in the hashtable. nfsd_lookup currently does that walk too (when crossing a mountpoint backwards) so the code gets unified. This approach makes more sense as we move towards a cache for export information that can be filled on demand. It also assumes less about the hash table (which will change). --- include/linux/nfsd/export.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h index 4b3f7b1bfd74..d3bd2a796716 100644 --- a/include/linux/nfsd/export.h +++ b/include/linux/nfsd/export.h @@ -91,6 +91,8 @@ struct svc_export * exp_get_fsid(struct svc_client *clp, int fsid); struct svc_export * exp_get_by_name(struct svc_client *clp, struct vfsmount *mnt, struct dentry *dentry); +struct svc_export * exp_parent(struct svc_client *clp, struct vfsmount *mnt, + struct dentry *dentry); int exp_rootfh(struct svc_client *, char *path, struct knfsd_fh *, int maxsize); int nfserrno(int errno); -- cgit v1.2.3