[Midnightbsd-cvs] src [8795] trunk/sys: Remove unused member of struct indir (in_exists)

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 25 23:23:12 EDT 2016


Revision: 8795
          http://svnweb.midnightbsd.org/src/?rev=8795
Author:   laffer1
Date:     2016-09-25 23:23:12 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
Remove unused member of struct indir (in_exists)

Modified Paths:
--------------
    trunk/sys/fs/ext2fs/ext2_bmap.c
    trunk/sys/fs/ext2fs/inode.h
    trunk/sys/ufs/ufs/inode.h
    trunk/sys/ufs/ufs/ufs_bmap.c

Modified: trunk/sys/fs/ext2fs/ext2_bmap.c
===================================================================
--- trunk/sys/fs/ext2fs/ext2_bmap.c	2016-09-26 03:22:15 UTC (rev 8794)
+++ trunk/sys/fs/ext2fs/ext2_bmap.c	2016-09-26 03:23:12 UTC (rev 8795)
@@ -183,7 +183,6 @@
 		if (bp)
 			bqrelse(bp);
 
-		ap->in_exists = 1;
 		bp = getblk(vp, metalbn, bsize, 0, 0, 0);
 		if ((bp->b_flags & B_CACHE) == 0) {
 #ifdef DIAGNOSTIC
@@ -310,7 +309,6 @@
 	 */
 	ap->in_lbn = metalbn;
 	ap->in_off = off = NIADDR - i;
-	ap->in_exists = 0;
 	ap++;
 	for (++numlevels; i <= NIADDR; i++) {
 		/* If searching for a meta-data block, quit when found. */
@@ -322,7 +320,6 @@
 		++numlevels;
 		ap->in_lbn = metalbn;
 		ap->in_off = off;
-		ap->in_exists = 0;
 		++ap;
 
 		metalbn -= -1 + off * blockcnt;

Modified: trunk/sys/fs/ext2fs/inode.h
===================================================================
--- trunk/sys/fs/ext2fs/inode.h	2016-09-26 03:22:15 UTC (rev 8794)
+++ trunk/sys/fs/ext2fs/inode.h	2016-09-26 03:23:12 UTC (rev 8795)
@@ -151,7 +151,6 @@
 struct indir {
 	int32_t in_lbn;			/* Logical block number. */
 	int	in_off;			/* Offset in buffer. */
-	int	in_exists;		/* Flag if the block exists. */
 };
 
 /* Convert between inode pointers and vnode pointers. */

Modified: trunk/sys/ufs/ufs/inode.h
===================================================================
--- trunk/sys/ufs/ufs/inode.h	2016-09-26 03:22:15 UTC (rev 8794)
+++ trunk/sys/ufs/ufs/inode.h	2016-09-26 03:23:12 UTC (rev 8795)
@@ -167,7 +167,6 @@
 struct indir {
 	ufs2_daddr_t in_lbn;		/* Logical block number. */
 	int	in_off;			/* Offset in buffer. */
-	int	in_exists;		/* Flag if the block exists. */
 };
 
 /* Convert between inode pointers and vnode pointers. */

Modified: trunk/sys/ufs/ufs/ufs_bmap.c
===================================================================
--- trunk/sys/ufs/ufs/ufs_bmap.c	2016-09-26 03:22:15 UTC (rev 8794)
+++ trunk/sys/ufs/ufs/ufs_bmap.c	2016-09-26 03:23:12 UTC (rev 8795)
@@ -212,7 +212,6 @@
 		if (bp)
 			bqrelse(bp);
 
-		ap->in_exists = 1;
 		bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0, 0);
 		if ((bp->b_flags & B_CACHE) == 0) {
 #ifdef INVARIANTS
@@ -357,7 +356,6 @@
 	 */
 	ap->in_lbn = metalbn;
 	ap->in_off = off = NIADDR - i;
-	ap->in_exists = 0;
 	ap++;
 	for (++numlevels; i <= NIADDR; i++) {
 		/* If searching for a meta-data block, quit when found. */
@@ -370,7 +368,6 @@
 		++numlevels;
 		ap->in_lbn = metalbn;
 		ap->in_off = off;
-		ap->in_exists = 0;
 		++ap;
 
 		metalbn -= -1 + off * blockcnt;



More information about the Midnightbsd-cvs mailing list