Fix typo in flist_sort.c
authorJens Axboe <jens.axboe@oracle.com>
Tue, 4 May 2010 12:20:21 +0000 (14:20 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 4 May 2010 12:20:21 +0000 (14:20 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
lib/flist_sort.c

index 6c7c4c0310de016c65de02a541c1826d4f3f92f6..9a2da8412593240323df728b99920bfe8a83bc6c 100644 (file)
@@ -125,8 +125,10 @@ void flist_sort(void *priv, struct flist_head *head,
                        cur = merge(priv, cmp, part[lev], cur);
                        part[lev] = NULL;
                }
-               if (lev > max_lev)
+               if (lev > max_lev) {
                        assert(lev < ARRAY_SIZE(part) - 1);
+                       max_lev = lev;
+               }
                part[lev] = cur;
        }