summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2007-10-16 10:54:55 +0000
committeralfred <alfred@FreeBSD.org>2007-10-16 10:54:55 +0000
commit3a60df401cca43d4246e5fbef9264acec14572a4 (patch)
tree405d520ed81bd0befd4c9fc4cf2fbf298e9e5105 /sys/gnu
parent3dcb842f61995b0a03d7040d6ada88633b0d0e11 (diff)
downloadFreeBSD-src-3a60df401cca43d4246e5fbef9264acec14572a4.zip
FreeBSD-src-3a60df401cca43d4246e5fbef9264acec14572a4.tar.gz
Get rid of qaddr_t.
Requested by: bde
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c6
-rw-r--r--sys/gnu/fs/reiserfs/reiserfs_vfsops.c4
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_vfs.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index ace6823..e39d4e7 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -687,7 +687,7 @@ ext2_mountfs(devvp, mp, td)
fs->s_dirt = 1; /* mark it modified */
fs->s_es->s_state &= ~EXT2_VALID_FS; /* set fs invalid */
}
- mp->mnt_data = (qaddr_t)ump;
+ mp->mnt_data = ump;
mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
mp->mnt_maxsymlinklen = EXT2_MAXSYMLINKLEN;
@@ -722,7 +722,7 @@ out:
bsd_free(ump->um_e2fs->s_es, M_EXT2MNT);
bsd_free(ump->um_e2fs, M_EXT2MNT);
bsd_free(ump, M_EXT2MNT);
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = NULL;
}
return (error);
}
@@ -780,7 +780,7 @@ ext2_unmount(mp, mntflags, td)
bsd_free(fs->s_es, M_EXT2MNT);
bsd_free(fs, M_EXT2MNT);
bsd_free(ump, M_EXT2MNT);
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = NULL;
MNT_ILOCK(mp);
mp->mnt_flag &= ~MNT_LOCAL;
MNT_IUNLOCK(mp);
diff --git a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
index ebfa6e5..ee5cb60 100644
--- a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
+++ b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
@@ -239,7 +239,7 @@ reiserfs_unmount(struct mount *mp, int mntflags, struct thread *td)
rmp = NULL;
}
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = 0;
MNT_ILOCK(mp);
mp->mnt_flag &= ~MNT_LOCAL;
MNT_IUNLOCK(mp);
@@ -598,7 +598,7 @@ reiserfs_mountfs(struct vnode *devvp, struct mount *mp, struct thread *td)
else
bit_set(&(sbi->s_properties), REISERFS_3_6);
- mp->mnt_data = (qaddr_t)rmp;
+ mp->mnt_data = rmp;
mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
MNT_ILOCK(mp);
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_vfs.c b/sys/gnu/fs/xfs/FreeBSD/xfs_vfs.c
index cae7bcf..ee405b5 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_vfs.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_vfs.c
@@ -241,7 +241,7 @@ vfs_allocate(struct mount *mp)
bhv_head_init(VFS_BHVHEAD(vfsp), "vfs");
xmp->m_mp = mp;
- mp->mnt_data = (qaddr_t)xmp;
+ mp->mnt_data = xmp;
vfsp->vfs_mp = mp;
return vfsp;
OpenPOWER on IntegriCloud