aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/export.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-03-15 23:13:32 +0800
committerJ. Bruce Fields <bfields@redhat.com>2015-03-31 16:46:38 -0400
commitb77a4b2edb29459ad039a1d8f5769bb2192acae1 (patch)
tree2020c20c0e8357a8059ae105f88d74a5f4fb26f0 /fs/nfsd/export.c
parentsunrpc: make debugfs file creation failure non-fatal (diff)
downloadlinux-dev-b77a4b2edb29459ad039a1d8f5769bb2192acae1.tar.xz
linux-dev-b77a4b2edb29459ad039a1d8f5769bb2192acae1.zip
NFSD: Using path_equal() for checking two paths
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r--fs/nfsd/export.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index c3e3b6e55ae2..2911f519fe64 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -691,8 +691,7 @@ static int svc_export_match(struct cache_head *a, struct cache_head *b)
struct svc_export *orig = container_of(a, struct svc_export, h);
struct svc_export *new = container_of(b, struct svc_export, h);
return orig->ex_client == new->ex_client &&
- orig->ex_path.dentry == new->ex_path.dentry &&
- orig->ex_path.mnt == new->ex_path.mnt;
+ path_equal(&orig->ex_path, &new->ex_path);
}
static void svc_export_init(struct cache_head *cnew, struct cache_head *citem)