summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2012-08-17 17:45:27 +0000
committermjg <mjg@FreeBSD.org>2012-08-17 17:45:27 +0000
commitb45a39ac78c3f73e5a6b942853a315637798663d (patch)
treebf7a2de26b7e1d75810a198e4f7924109a0fe54f /usr.sbin/makefs
parent0da4a31458b74223cde79194bf36eb6cbe7db847 (diff)
downloadFreeBSD-src-b45a39ac78c3f73e5a6b942853a315637798663d.zip
FreeBSD-src-b45a39ac78c3f73e5a6b942853a315637798663d.tar.gz
Remove unused member of struct indir (in_exists) from UFS and EXT2 code.
Reviewed by: mckusick Approved by: trasz (mentor) MFC after: 1 week
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r--usr.sbin/makefs/ffs/ffs_extern.h1
-rw-r--r--usr.sbin/makefs/ffs/ufs_bmap.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/makefs/ffs/ffs_extern.h b/usr.sbin/makefs/ffs/ffs_extern.h
index 1c3442f5..7755823 100644
--- a/usr.sbin/makefs/ffs/ffs_extern.h
+++ b/usr.sbin/makefs/ffs/ffs_extern.h
@@ -44,7 +44,6 @@ struct inode;
struct indir {
daddr_t in_lbn; /* Logical block number. */
int in_off; /* Offset in buffer. */
- int in_exists; /* Flag if the block exists. */
};
/* ffs.c */
diff --git a/usr.sbin/makefs/ffs/ufs_bmap.c b/usr.sbin/makefs/ffs/ufs_bmap.c
index 85c1d87..b65b416 100644
--- a/usr.sbin/makefs/ffs/ufs_bmap.c
+++ b/usr.sbin/makefs/ffs/ufs_bmap.c
@@ -117,7 +117,6 @@ ufs_getlbns(struct inode *ip, daddr_t bn, struct indir *ap, int *nump)
*/
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. */
@@ -131,7 +130,6 @@ ufs_getlbns(struct inode *ip, daddr_t bn, struct indir *ap, int *nump)
++numlevels;
ap->in_lbn = metalbn;
ap->in_off = off;
- ap->in_exists = 0;
++ap;
metalbn -= -1 + (off << lbc);
OpenPOWER on IntegriCloud