summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorKinglong Mee2015-03-15 16:13:32 +0100
committerJ. Bruce Fields2015-03-31 22:46:38 +0200
commitb77a4b2edb29459ad039a1d8f5769bb2192acae1 (patch)
tree2020c20c0e8357a8059ae105f88d74a5f4fb26f0 /fs/nfsd/nfs4xdr.c
parentsunrpc: make debugfs file creation failure non-fatal (diff)
downloadkernel-qcow2-linux-b77a4b2edb29459ad039a1d8f5769bb2192acae1.tar.gz
kernel-qcow2-linux-b77a4b2edb29459ad039a1d8f5769bb2192acae1.tar.xz
kernel-qcow2-linux-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/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 5fb7e78169a6..5c0aa74cba86 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -2020,7 +2020,7 @@ static __be32 nfsd4_encode_path(struct xdr_stream *xdr,
* dentries/path components in an array.
*/
for (;;) {
- if (cur.dentry == root->dentry && cur.mnt == root->mnt)
+ if (path_equal(&cur, root))
break;
if (cur.dentry == cur.mnt->mnt_root) {
if (follow_up(&cur))