NFSD: fix bug for readdir of pseudofs
authorKinglong Mee <kinglongmee@gmail.com>
Fri, 13 Jun 2014 09:32:42 +0000 (17:32 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 17 Jun 2014 20:42:48 +0000 (16:42 -0400)
commitf41c5ad2ff2657978a9712b9ea80cd812a7da2b0
treef717adf1cef517c6a6fef4b1a321b5cea82d38b8
parent6282cd56555347c0ec2addc97bd96b40df0a38b7
NFSD: fix bug for readdir of pseudofs

Commit 561f0ed498ca (nfsd4: allow large readdirs) introduces a bug
about readdir the root of pseudofs.

Call xdr_truncate_encode() revert encoded name when skipping.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c