]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
ifdef ext2_print_inode which is not really used.
authorpfg <pfg@FreeBSD.org>
Wed, 12 Nov 2014 16:23:56 +0000 (16:23 +0000)
committerpfg <pfg@FreeBSD.org>
Wed, 12 Nov 2014 16:23:56 +0000 (16:23 +0000)
ext2_print_inode is not really used but it was nice to
have for initial development work. #ifdef it under a
new EXT2FS_DEBUG knob so that we don't spend time
compiling it.

MFC after: 3 days

sys/fs/ext2fs/ext2_extern.h
sys/fs/ext2fs/ext2_inode_cnv.c
sys/fs/ext2fs/ext2_vfsops.c

index 5edac90e03d63f008d350597419d2b307adec877..93bd3f7cd0f6ef027c6ef803a62e4fb8095fb889 100644 (file)
@@ -74,7 +74,9 @@ int   ext2_vfree(struct vnode *, ino_t, int);
 int    ext2_vinit(struct mount *, struct vop_vector *, struct vnode **vpp);
 int    ext2_lookup(struct vop_cachedlookup_args *);
 int    ext2_readdir(struct vop_readdir_args *);
+#ifdef EXT2FS_DEBUG
 void   ext2_print_inode(struct inode *);
+#endif
 int    ext2_direnter(struct inode *, 
                struct vnode *, struct componentname *);
 int    ext2_dirremove(struct vnode *, struct componentname *);
index cce03d8d165935a49f9a6e55f3a40c0a24acd020..b69d4e5c8b6e29a234332ffd4a070b8fe4b15cfa 100644 (file)
@@ -41,6 +41,7 @@
 #define XTIME_TO_NSEC(x)       ((x & EXT3_NSEC_MASK) >> 2)
 #define NSEC_TO_XTIME(t)       (le32toh(t << 2) & EXT3_NSEC_MASK)
 
+#ifdef EXT2FS_DEBUG
 void
 ext2_print_inode(struct inode *in)
 {
@@ -75,6 +76,7 @@ ext2_print_inode(struct inode *in)
            ep->e_len, ep->e_start_lo, ep->e_start_hi);
        printf("\n");
 }
+#endif /* EXT2FS_DEBUG */
 
 /*
  *     raw ext2 inode to inode
index b05070d32610716be1d0851e1592798eb5951c42..b97356d072ac8570f5cb2587ccc64263ef705d5d 100644 (file)
@@ -974,9 +974,9 @@ ext2_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
                for (i = used_blocks; i < EXT2_NDIR_BLOCKS; i++)
                        ip->i_db[i] = 0;
        }
-/*
+#ifdef EXT2FS_DEBUG
        ext2_print_inode(ip);
-*/
+#endif
        bqrelse(bp);
 
        /*