summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs/ext2fs_subr.c
diff options
context:
space:
mode:
authorMartin Pelikan <pelikan@cvs.openbsd.org>2014-07-13 16:59:36 +0000
committerMartin Pelikan <pelikan@cvs.openbsd.org>2014-07-13 16:59:36 +0000
commit25066f43401992e484154ad791bb582ec4d93e31 (patch)
tree34061801589dba0c26f141335124ddf4359b83cb /sys/ufs/ext2fs/ext2fs_subr.c
parent89fb2bd3f51e181f8e28a2efe3aa3551e121c44c (diff)
kill fs2hXX/h2fsXX macros with letohXX/htoleXX
The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian". Some KNF while there. ok guenther
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_subr.c')
-rw-r--r--sys/ufs/ext2fs/ext2fs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_subr.c b/sys/ufs/ext2fs/ext2fs_subr.c
index cd4f22e9908..57823855a56 100644
--- a/sys/ufs/ext2fs/ext2fs_subr.c
+++ b/sys/ufs/ext2fs/ext2fs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_subr.c,v 1.31 2014/07/13 13:28:26 pelikan Exp $ */
+/* $OpenBSD: ext2fs_subr.c,v 1.32 2014/07/13 16:59:35 pelikan Exp $ */
/* $NetBSD: ext2fs_subr.c,v 1.1 1997/06/11 09:34:03 bouyer Exp $ */
/*
@@ -182,7 +182,7 @@ ext2fs_vinit(struct mount *mp, struct vops *specops,
case VBLK:
vp->v_op = specops;
- nvp = checkalias(vp, fs2h32(ip->i_e2din->e2di_rdev), mp);
+ nvp = checkalias(vp, letoh32(ip->i_e2din->e2di_rdev), mp);
if (nvp != NULL) {
/*
* Discard unneeded vnode, but save its inode. Note