X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fbplist.c;h=d196351dcf964ec9097771268e2b732e54fe4f48;hb=refs%2Fheads%2Frertzinger%2Ffeature-zpool-get--p;hp=066ccc6b1e052e5bdefc99fa252d1bca55b5c178;hpb=428870ff734fdaccc342b33fc53cf94724409a46;p=zfs.git diff --git a/module/zfs/bplist.c b/module/zfs/bplist.c index 066ccc6..d196351 100644 --- a/module/zfs/bplist.c +++ b/module/zfs/bplist.c @@ -44,7 +44,7 @@ bplist_destroy(bplist_t *bpl) void bplist_append(bplist_t *bpl, const blkptr_t *bp) { - bplist_entry_t *bpe = kmem_alloc(sizeof (*bpe), KM_SLEEP); + bplist_entry_t *bpe = kmem_alloc(sizeof (*bpe), KM_PUSHPAGE); mutex_enter(&bpl->bpl_lock); bpe->bpe_blk = *bp; @@ -58,7 +58,7 @@ bplist_iterate(bplist_t *bpl, bplist_itor_t *func, void *arg, dmu_tx_t *tx) bplist_entry_t *bpe; mutex_enter(&bpl->bpl_lock); - while (bpe = list_head(&bpl->bpl_list)) { + while ((bpe = list_head(&bpl->bpl_list))) { list_remove(&bpl->bpl_list, bpe); mutex_exit(&bpl->bpl_lock); func(arg, &bpe->bpe_blk, tx);