mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
In r114945 the line 'nmp = TAILQ_NEXT(mp, mnt_list);' was duplicated.
Instead of just removing the duplicate, convert the loop to TAILQ_FOREACH().
This commit is contained in:
parent
2c40899ecc
commit
4593c0ad6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254446
@ -2906,7 +2906,7 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
|
||||
*/
|
||||
DB_SHOW_COMMAND(lockedvnods, lockedvnodes)
|
||||
{
|
||||
struct mount *mp, *nmp;
|
||||
struct mount *mp;
|
||||
struct vnode *vp;
|
||||
|
||||
/*
|
||||
@ -2916,14 +2916,11 @@ DB_SHOW_COMMAND(lockedvnods, lockedvnodes)
|
||||
* about that.
|
||||
*/
|
||||
db_printf("Locked vnodes\n");
|
||||
for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) {
|
||||
nmp = TAILQ_NEXT(mp, mnt_list);
|
||||
TAILQ_FOREACH(mp, &mountlist, mnt_list) {
|
||||
TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes) {
|
||||
if (vp->v_type != VMARKER &&
|
||||
VOP_ISLOCKED(vp))
|
||||
if (vp->v_type != VMARKER && VOP_ISLOCKED(vp))
|
||||
vprint("", vp);
|
||||
}
|
||||
nmp = TAILQ_NEXT(mp, mnt_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user