From 052f274c3c801a074dd65aab729285fa95aab84c Mon Sep 17 00:00:00 2001 From: Mark Vitale Date: Mon, 17 Apr 2023 18:28:25 -0400 Subject: [PATCH] afs: Remove bulk stat dead code Since the original IBM code import, the Unix cache manager has contained a few fragments of apparently vestigial code related to processing directories via RXAFS_BulkStatus. Remove the unused code. No functional change is incurred by this commit. Change-Id: I60998b304c333ec177c1d88e5bea2e5beacabec3 Reviewed-on: https://gerrit.openafs.org/15398 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Michael Meffie --- src/afs/VNOPS/afs_vnop_readdir.c | 18 ------------------ src/afs/afs_init.c | 3 --- src/afs/afs_prototypes.h | 1 - 3 files changed, 22 deletions(-) diff --git a/src/afs/VNOPS/afs_vnop_readdir.c b/src/afs/VNOPS/afs_vnop_readdir.c index 320f04f591..d43b67c663 100644 --- a/src/afs/VNOPS/afs_vnop_readdir.c +++ b/src/afs/VNOPS/afs_vnop_readdir.c @@ -13,7 +13,6 @@ * Implements: * BlobScan * afs_readdir_move - * afs_bulkstat_send * afs_readdir/afs_readdir2(HP) * afs_readdir1 - HP NFS version * @@ -196,17 +195,6 @@ struct minnfs_direct { #endif /* !defined(UKERNEL) */ -/* - *------------------------------------------------------------------------------ - * - * Keep a stack of about 256 fids for the bulk stat call. - * Fill it during the readdir_move. Later empty it... - */ - -#define READDIR_STASH AFSCBMAX -struct AFSFid afs_readdir_stash[READDIR_STASH]; -int afs_rd_stash_i = 0; - /* *------------------------------------------------------------------------------ * @@ -553,12 +541,6 @@ afs_readdir_move(struct DirEntry *de, struct vcache *vc, struct uio *auio, * This routine encodes knowledge of Vice dirs. */ -void -afs_bulkstat_send(struct vcache *avc, struct vrequest *req) -{ - afs_rd_stash_i = 0; -} - /* * Here is the bad, bad, really bad news. * It has to do with 'offset' (seek locations). diff --git a/src/afs/afs_init.c b/src/afs/afs_init.c index 63d24cf8f2..0b8dd0e458 100644 --- a/src/afs/afs_init.c +++ b/src/afs/afs_init.c @@ -739,9 +739,6 @@ shutdown_vnodeops(void) { AFS_STATCNT(shutdown_vnodeops); if (afs_cold_shutdown) { -#ifndef AFS_LINUX_ENV - afs_rd_stash_i = 0; -#endif shutdown_mariner(); } } diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h index 1d89337169..db5cd4aa24 100644 --- a/src/afs/afs_prototypes.h +++ b/src/afs/afs_prototypes.h @@ -1260,7 +1260,6 @@ extern void afs_PrefetchChunk(struct vcache *avc, struct dcache *adc, /* VNOPS/afs_vnop_readdir.c */ -extern int afs_rd_stash_i; extern int BlobScan(struct dcache * afile, afs_int32 ablob, int *ablobOut); #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) extern int afs_readdir(OSI_VC_DECL(avc), struct uio *auio,