Slightly reorganize to reduce duplicated code.

Reviewed by:	rwatson
This commit is contained in:
Xin LI 2005-11-07 18:25:23 +00:00
parent 634e3a5c83
commit fad951e3a0

View File

@ -544,8 +544,7 @@ ufs_extattr_stop(struct mount *mp, struct thread *td)
goto unlock;
}
while (LIST_FIRST(&ump->um_extattr.uepm_list) != NULL) {
uele = LIST_FIRST(&ump->um_extattr.uepm_list);
while ((uele = LIST_FIRST(&ump->um_extattr.uepm_list)) != NULL) {
ufs_extattr_disable(ump, uele->uele_attrnamespace,
uele->uele_attrname, td);
}