summaryrefslogtreecommitdiffstats
path: root/sys/ufs
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 /sys/ufs
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 'sys/ufs')
-rw-r--r--sys/ufs/ufs/inode.h1
-rw-r--r--sys/ufs/ufs/ufs_bmap.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/ufs/ufs/inode.h b/sys/ufs/ufs/inode.h
index 2b02000..51f0197 100644
--- a/sys/ufs/ufs/inode.h
+++ b/sys/ufs/ufs/inode.h
@@ -167,7 +167,6 @@ struct inode {
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. */
diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c
index e0fb307..22887c8 100644
--- a/sys/ufs/ufs/ufs_bmap.c
+++ b/sys/ufs/ufs/ufs_bmap.c
@@ -212,7 +212,6 @@ ufs_bmaparray(vp, bn, bnp, nbp, runp, runb)
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 @@ ufs_getlbns(vp, bn, ap, 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. */
@@ -370,7 +368,6 @@ ufs_getlbns(vp, bn, ap, nump)
++numlevels;
ap->in_lbn = metalbn;
ap->in_off = off;
- ap->in_exists = 0;
++ap;
metalbn -= -1 + off * blockcnt;
OpenPOWER on IntegriCloud