mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Simplify the code.
This commit is contained in:
parent
01e21ead90
commit
91853b8546
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344320
@ -360,16 +360,13 @@ trim_map_write_start(zio_t *zio)
|
||||
return (B_FALSE);
|
||||
}
|
||||
|
||||
ts = avl_find(&tm->tm_queued_frees, &tsearch, NULL);
|
||||
if (ts != NULL) {
|
||||
/*
|
||||
* Loop until all overlapping segments are removed.
|
||||
*/
|
||||
do {
|
||||
trim_map_segment_remove(tm, ts, start, end);
|
||||
ts = avl_find(&tm->tm_queued_frees, &tsearch, NULL);
|
||||
} while (ts != NULL);
|
||||
/*
|
||||
* Loop until all overlapping segments are removed.
|
||||
*/
|
||||
while ((ts = avl_find(&tm->tm_queued_frees, &tsearch, NULL)) != NULL) {
|
||||
trim_map_segment_remove(tm, ts, start, end);
|
||||
}
|
||||
|
||||
avl_add(&tm->tm_inflight_writes, zio);
|
||||
|
||||
mutex_exit(&tm->tm_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user