OSDN Git Service

NFS: Clean up readdir struct nfs_cache_array
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 1 Nov 2020 18:45:55 +0000 (13:45 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:51 +0000 (14:05 -0500)
commitb1e21c97437f64d0a00f8fea1f9e64e77e0e4242
treea0b2f9e2e24781e6b446853d179019ba294c8a82
parent2e7a46417952ae480cb5091ed5ade73078630b40
NFS: Clean up readdir struct nfs_cache_array

Since the 'eof_index' is only ever used as a flag, make it so.
Also add a flag to detect if the page has been completely filled.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Dave Wysochanski <dwysocha@redhat.com>
fs/nfs/dir.c