X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/f7db522fa2f1fcbb76a20e92dd738d7ba2b7004b..29ca4fd6da8bb70ae90d8e73ea3c47fda22491a7:/sys/vfs/tmpfs/tmpfs_vfsops.c diff --git a/sys/vfs/tmpfs/tmpfs_vfsops.c b/sys/vfs/tmpfs/tmpfs_vfsops.c index 4aa5eb1eda..de23cb7d3b 100644 --- a/sys/vfs/tmpfs/tmpfs_vfsops.c +++ b/sys/vfs/tmpfs/tmpfs_vfsops.c @@ -351,8 +351,8 @@ tmpfs_unmount(struct mount *mp, int mntflags) if (node->tn_type == VDIR) { struct tmpfs_dirent *de; - while (!TAILQ_EMPTY(&node->tn_dir.tn_dirhead)) { - de = TAILQ_FIRST(&node->tn_dir.tn_dirhead); + while (!RB_EMPTY(&node->tn_dir.tn_dirtree)) { + de = RB_FIRST(tmpfs_dirtree, &node->tn_dir.tn_dirtree); tmpfs_dir_detach(node, de); tmpfs_free_dirent(tmp, de); node->tn_size -= sizeof(struct tmpfs_dirent);