Author: pfg
Date: Tue Dec 23 03:24:16 2014
New Revision: 276102
URL: https://svnweb.freebsd.org/changeset/base/276102

Log:
  MFC   r274437;
  
  ifdef ext2_print_inode which is not really used.
  
  ext2_print_inode was nice to have for initial development work but
  is not really used anymore. #ifdef it under a new EXT2FS_DEBUG knob
  so that we don't spend time compiling it.

Modified:
  stable/10/sys/fs/ext2fs/ext2_extern.h
  stable/10/sys/fs/ext2fs/ext2_inode_cnv.c
  stable/10/sys/fs/ext2fs/ext2_vfsops.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/ext2fs/ext2_extern.h
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_extern.h       Tue Dec 23 03:00:18 2014        
(r276101)
+++ stable/10/sys/fs/ext2fs/ext2_extern.h       Tue Dec 23 03:24:16 2014        
(r276102)
@@ -74,7 +74,9 @@ int   ext2_vfree(struct vnode *, ino_t, in
 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 *);

Modified: stable/10/sys/fs/ext2fs/ext2_inode_cnv.c
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_inode_cnv.c    Tue Dec 23 03:00:18 2014        
(r276101)
+++ stable/10/sys/fs/ext2fs/ext2_inode_cnv.c    Tue Dec 23 03:24:16 2014        
(r276102)
@@ -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

Modified: stable/10/sys/fs/ext2fs/ext2_vfsops.c
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_vfsops.c       Tue Dec 23 03:00:18 2014        
(r276101)
+++ stable/10/sys/fs/ext2fs/ext2_vfsops.c       Tue Dec 23 03:24:16 2014        
(r276102)
@@ -974,9 +974,9 @@ ext2_vget(struct mount *mp, ino_t ino, i
                for (i = used_blocks; i < EXT2_NDIR_BLOCKS; i++)
                        ip->i_db[i] = 0;
        }
-/*
+#ifdef EXT2FS_DEBUG
        ext2_print_inode(ip);
-*/
+#endif
        bqrelse(bp);
 
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to