X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=module%2Fzfs%2Fsa.c;h=4278ed7e4e509bc22a9b1e475632301bdd066c81;hb=5547c2f1bf49802835fd6c52f15115ba344a2a8b;hp=8acbb0cbb66d52b8a2d9342faf518e49604e26a0;hpb=e45aa452988f721e458fa3abe54669bdf9377352;p=zfs.git diff --git a/module/zfs/sa.c b/module/zfs/sa.c index 8acbb0c..4278ed7 100644 --- a/module/zfs/sa.c +++ b/module/zfs/sa.c @@ -607,14 +607,14 @@ sa_find_sizes(sa_os_t *sa, sa_bulk_attr_t *attr_desc, int attr_count, * and spill buffer. */ if (buftype == SA_BONUS && *index == -1 && - P2ROUNDUP(*total + hdrsize, 8) > + (*total + P2ROUNDUP(hdrsize, 8)) > (full_space - sizeof (blkptr_t))) { *index = i; done = B_TRUE; } next: - if (P2ROUNDUP(*total + hdrsize, 8) > full_space && + if ((*total + P2ROUNDUP(hdrsize, 8)) > full_space && buftype == SA_BONUS) *will_spill = B_TRUE; }