Skip to content

Commit

Permalink
Replace TAILQ concatenation loop with TAILQ_CONCAT
Browse files Browse the repository at this point in the history
OK florian@, bluhm@, visa@
  • Loading branch information
bket committed Feb 4, 2020
1 parent afd4461 commit 57e9537
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sys/ufs/ffs/ffs_softdep.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: ffs_softdep.c,v 1.147 2020/01/14 08:17:08 mpi Exp $ */
/* $OpenBSD: ffs_softdep.c,v 1.148 2020/02/04 04:09:11 bket Exp $ */

/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
Expand Down Expand Up @@ -4486,10 +4486,7 @@ merge_inode_lists(struct inodedep *inodedep)
}
newadp = TAILQ_FIRST(&inodedep->id_newinoupdt);
}
while ((newadp = TAILQ_FIRST(&inodedep->id_newinoupdt)) != NULL) {
TAILQ_REMOVE(&inodedep->id_newinoupdt, newadp, ad_next);
TAILQ_INSERT_TAIL(&inodedep->id_inoupdt, newadp, ad_next);
}
TAILQ_CONCAT(&inodedep->id_inoupdt, &inodedep->id_newinoupdt, ad_next);
}

/*
Expand Down

0 comments on commit 57e9537

Please sign in to comment.