diff options
author | truckman <truckman@FreeBSD.org> | 2004-10-08 20:44:47 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2004-10-08 20:44:47 +0000 |
commit | 78abfd32f0f68e14f413541b1f360e4c166045a5 (patch) | |
tree | af6db7840e73d182ffa04c61044510d44fa56004 /sbin/fsck_ffs/main.c | |
parent | f5ef5456b3860f6305fc2281c6ccdd143a02cf56 (diff) | |
download | FreeBSD-src-78abfd32f0f68e14f413541b1f360e4c166045a5.zip FreeBSD-src-78abfd32f0f68e14f413541b1f360e4c166045a5.tar.gz |
Eliminate linked list used to track inodes with an initial link
count of zero and instead encode this information in the inode state.
Pass 4 performed a linear search of this list for each inode in
the file system, which performs poorly if the list is long.
Reviewed by: sam & keramida (an earlier version of the patch), mckusick
MFC after: 1 month
Diffstat (limited to 'sbin/fsck_ffs/main.c')
-rw-r--r-- | sbin/fsck_ffs/main.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 1648b94..d102a9f 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -194,7 +194,6 @@ checkfilesys(char *filesys) struct ufs_args args; struct dups *dp; struct statfs *mntp; - struct zlncnt *zlnp; struct stat snapdir; struct group *grp; ufs2_daddr_t blks; @@ -424,14 +423,7 @@ checkfilesys(char *filesys) printf(" %lld,", (long long)dp->dup); printf("\n"); } - if (zlnhead != NULL) { - printf("The following zero link count inodes remain:"); - for (zlnp = zlnhead; zlnp; zlnp = zlnp->next) - printf(" %u,", zlnp->zlncnt); - printf("\n"); - } } - zlnhead = (struct zlncnt *)0; duplist = (struct dups *)0; muldup = (struct dups *)0; inocleanup(); |