aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-02-28 17:06:42 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-02-28 17:06:42 +0000
commit35fcc0662ba04ba900ba9255b760af8d85b92fe9 (patch)
treef070770654f8cd41cb9d15808d19077eaefd7e73 /sys/fs/msdosfs
parent22e62e7e6ee76367e995f8c57c1ab745efceb316 (diff)
downloadsrc-35fcc0662ba04ba900ba9255b760af8d85b92fe9.tar.gz
src-35fcc0662ba04ba900ba9255b760af8d85b92fe9.zip
Remove unused global statistic about fat cache usage.
Tested by: pho MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=204465
Diffstat (limited to 'sys/fs/msdosfs')
-rw-r--r--sys/fs/msdosfs/msdosfs_fat.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c
index 76d1527c5a48..9677a7a761cc 100644
--- a/sys/fs/msdosfs/msdosfs_fat.c
+++ b/sys/fs/msdosfs/msdosfs_fat.c
@@ -60,19 +60,6 @@
#include <fs/msdosfs/fat.h>
#include <fs/msdosfs/msdosfsmount.h>
-/*
- * Fat cache stats.
- */
-static int fc_fileextends; /* # of file extends */
-static int fc_lfcempty; /* # of time last file cluster cache entry
- * was empty */
-static int fc_bmapcalls; /* # of times pcbmap was called */
-
-#define LMMAX 20
-static int fc_lmdistance[LMMAX];/* counters for how far off the last
- * cluster mapped entry was. */
-static int fc_largedistance; /* off by more than LMMAX */
-
static int chainalloc(struct msdosfsmount *pmp, u_long start,
u_long count, u_long fillwith, u_long *retcluster,
u_long *got);
@@ -152,8 +139,6 @@ pcbmap(dep, findcn, bnp, cnp, sp)
struct msdosfsmount *pmp = dep->de_pmp;
u_long bsize;
- fc_bmapcalls++;
-
/*
* If they don't give us someplace to return a value then don't
* bother doing anything.
@@ -203,10 +188,6 @@ pcbmap(dep, findcn, bnp, cnp, sp)
*/
i = 0;
fc_lookup(dep, findcn, &i, &cn);
- if ((bn = findcn - i) >= LMMAX)
- fc_largedistance++;
- else
- fc_lmdistance[bn]++;
/*
* Handle all other files or directories the normal way.
@@ -992,10 +973,8 @@ extendfile(dep, count, bpp, ncp, flags)
* If the "file's last cluster" cache entry is empty, and the file
* is not empty, then fill the cache entry by calling pcbmap().
*/
- fc_fileextends++;
if (dep->de_fc[FC_LASTFC].fc_frcn == FCE_EMPTY &&
dep->de_StartCluster != 0) {
- fc_lfcempty++;
error = pcbmap(dep, 0xffff, 0, &cn, 0);
/* we expect it to return E2BIG */
if (error != E2BIG)