diff options
| -rw-r--r-- | sys/kern/subr_blist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_blist.c b/sys/kern/subr_blist.c index 0e5156c5053c..21a1ab033535 100644 --- a/sys/kern/subr_blist.c +++ b/sys/kern/subr_blist.c @@ -764,6 +764,8 @@ blst_meta_alloc(blmeta_t *scan, daddr_t cursor, daddr_t count, u_daddr_t radix) /* Discard any candidates that appear before cursor. */ digit = (cursor / radix) & BLIST_META_MASK; mask &= (u_daddr_t)-1 << digit; + if (mask == 0) + return (SWAPBLK_NONE); /* * If the first try is for a block that includes the cursor, pre-undo |
