aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 12:37:48 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 12:37:48 +0000
commitef9e85abba5ce45c8b3fc840db320edb1abe0160 (patch)
treed2e5cb8e29ccaff027535056d821dbd338e6781e /sys/gnu
parenta7ecc804fb2f1388eede0fbe42d2e59340b5b344 (diff)
Notes
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_ihash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c
index 984db075f76e..6866a23bab31 100644
--- a/sys/gnu/ext2fs/ext2_ihash.c
+++ b/sys/gnu/ext2fs/ext2_ihash.c
@@ -78,7 +78,7 @@ ufs_ihashlookup(dev, inum)
struct inode *ip;
mtx_enter(&ufs_ihash_mtx, MTX_DEF);
- for (ip = INOHASH(dev, inum)->lh_first; ip; ip = ip->i_hash.le_next)
+ LIST_FOREACH(ip, INOHASH(dev, inum), i_hash)
if (inum == ip->i_number && dev == ip->i_dev)
break;
mtx_exit(&ufs_ihash_mtx, MTX_DEF);
@@ -103,7 +103,7 @@ ufs_ihashget(dev, inum)
loop:
mtx_enter(&ufs_ihash_mtx, MTX_DEF);
- for (ip = INOHASH(dev, inum)->lh_first; ip; ip = ip->i_hash.le_next) {
+ LIST_FOREACH(ip, INOHASH(dev, inum), i_hash) {
if (inum == ip->i_number && dev == ip->i_dev) {
vp = ITOV(ip);
mtx_enter(&vp->v_interlock, MTX_DEF);