NFSD: Count bytes instead of pages in the NFSv2 READDIR encoder
authorChuck Lever <chuck.lever@oracle.com>
Fri, 13 Nov 2020 21:57:44 +0000 (16:57 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 22 Mar 2021 14:18:59 +0000 (10:18 -0400)
commit8141d6a2bb6c655ff0c0b81ced80d9025f03e926
tree0520451d1f3fdac50bdd3caa9e69de184463b0b8
parentd52532002ffa217ad3fa4c3ba86c95203d21dd21
NFSD: Count bytes instead of pages in the NFSv2 READDIR encoder

Clean up: Counting the bytes used by each returned directory entry
seems less brittle to me than trying to measure consumed pages after
the fact.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsproc.c
fs/nfsd/nfsxdr.c