Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs Commit out code that's no longer used.



details:   https://anonhg.NetBSD.org/src/rev/ee3632cef8d1
branches:  trunk
changeset: 526923:ee3632cef8d1
user:      matt <matt%NetBSD.org@localhost>
date:      Tue May 14 02:46:22 2002 +0000

description:
Commit out code that's no longer used.

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (114 lines):

diff -r 23886564a30e -r ee3632cef8d1 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Tue May 14 02:41:34 2002 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Tue May 14 02:46:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.54 2002/04/10 08:05:11 mycroft Exp $   */
+/*     $NetBSD: ffs_alloc.c,v 1.55 2002/05/14 02:46:22 matt Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.54 2002/04/10 08:05:11 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.55 2002/05/14 02:46:22 matt Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -63,7 +63,9 @@
 
 static ufs_daddr_t ffs_alloccg __P((struct inode *, int, ufs_daddr_t, int));
 static ufs_daddr_t ffs_alloccgblk __P((struct inode *, struct buf *, ufs_daddr_t));
+#ifdef XXXUBC
 static ufs_daddr_t ffs_clusteralloc __P((struct inode *, int, ufs_daddr_t, int));
+#endif
 static ino_t ffs_dirpref __P((struct inode *));
 static ufs_daddr_t ffs_fragextend __P((struct inode *, int, long, int, int));
 static void ffs_fserr __P((struct fs *, u_int, char *));
@@ -73,8 +75,10 @@
 static ufs_daddr_t ffs_mapsearch __P((struct fs *, struct cg *,
                                      ufs_daddr_t, int));
 #if defined(DIAGNOSTIC) || defined(DEBUG)
+#ifdef XXXUBC
 static int ffs_checkblk __P((struct inode *, ufs_daddr_t, long size));
 #endif
+#endif
 
 /* if 1, changes in optimalization strategy are logged */
 int ffs_log_changeopt = 0;
@@ -391,11 +395,13 @@
  * Note that the error return is not reflected back to the user. Rather
  * the previous block allocation will be used.
  */
+#ifdef XXXUBC
 #ifdef DEBUG
 #include <sys/sysctl.h>
 int prtrealloc = 0;
 struct ctldebug debug15 = { "prtrealloc", &prtrealloc };
 #endif
+#endif
 
 int doasyncfree = 1;
 
@@ -403,6 +409,7 @@
 ffs_reallocblks(v)
        void *v;
 {
+#ifdef XXXUBC
        struct vop_reallocblks_args /* {
                struct vnode *a_vp;
                struct cluster_save *a_buflist;
@@ -416,10 +423,12 @@
        ufs_daddr_t start_lbn, end_lbn, soff, newblk, blkno;
        struct indir start_ap[NIADDR + 1], end_ap[NIADDR + 1], *idp;
        int i, len, start_lvl, end_lvl, pref, ssize;
+#endif /* XXXUBC */
 
        /* XXXUBC don't reallocblks for now */
        return ENOSPC;
 
+#ifdef XXXUBC
        vp = ap->a_vp;
        ip = VTOI(vp);
        fs = ip->i_fs;
@@ -603,6 +612,7 @@
        if (sbap != &ip->i_ffs_db[0])
                brelse(sbp);
        return (ENOSPC);
+#endif /* XXXUBC */
 }
 
 /*
@@ -1245,6 +1255,7 @@
        return (blkno);
 }
 
+#ifdef XXXUBC
 /*
  * Determine whether a cluster can be allocated.
  *
@@ -1357,6 +1368,7 @@
        brelse(bp);
        return (0);
 }
+#endif /* XXXUBC */
 
 /*
  * Determine whether an inode can be allocated.
@@ -1558,6 +1570,7 @@
 }
 
 #if defined(DIAGNOSTIC) || defined(DEBUG)
+#ifdef XXXUBC
 /*
  * Verify allocation of a block or fragment. Returns true if block or
  * fragment is allocated, false if it is free.
@@ -1607,6 +1620,7 @@
        brelse(bp);
        return (!free);
 }
+#endif /* XXXUBC */
 #endif /* DIAGNOSTIC */
 
 /*



Home | Main Index | Thread Index | Old Index