X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fsa.c;fp=module%2Fzfs%2Fsa.c;h=4278ed7e4e509bc22a9b1e475632301bdd066c81;hb=c47516762758c989a443c0a6a9e38ae8fb46e6f1;hp=8acbb0cbb66d52b8a2d9342faf518e49604e26a0;hpb=3cee2262a6efd06031a2ff511f66e6a51f743e6a;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; }