User Details
- User Since
- Nov 12 2015, 8:14 PM (521 w, 4 d)
Tue, Oct 28
Mon, Oct 20
Fri, Oct 17
Thu, Oct 16
Great, thanks. I'll push as is.
Wed, Oct 15
So, I realized that --param min-pagesize was introduced in gcc 11.3 and this will cause an error for older gcc. @imp is it still gcc 9 that's the minimum? I can either wrap this with something like
.if ${COMPILER_TYPE} == "gcc" and ${COMPILER_VERSION} >= 110300
CFLAGS.gcc+= --param min-pagesize=1024
.endifor just drop this as not worth the ugliness.
Tue, Oct 14
kp feedback: just initialize the copies to 0
I'll defer to you and kib as maintainers whether this is a good direction. Personally I do like the flattening of the structure that results from moving line 561/563 and following out of the loop, but I'm less sure about the initial loop unrolling. FWIW my preference for the warning would still be to just NULL initialize child.
Oct 10 2025
Oct 9 2025
dougm feedback: _UPMOD_ macros don't improve clarity
@dougm, do you have a preference here? I'm happy to follow a suggestion or have you take it over.
Oct 8 2025
whitespace fixup
kib feedback: macro names could be more clear about modifying the
argument. I went with "MOD" instead of "SET".
kib feedback
Oct 7 2025
Oct 6 2025
There are other options for how to spell the internal macros. I'm open to something else that might be more clear. Something in particular I considered is just providing
#define _RB_OP_RVAL(elm, op, dir) ((__typeof(elm)) \ ((__uintptr_t)(elm) op (dir))) #define _RB_OP(elm, op, dir) ((elm) = _RB_OP_RVAL((elm), op, (dir))) #define _RB_OPUP(elm, field, op, dir) _RB_OP(_RB_UP((elm), field), op, (dir))
and not _RB_{OR,XOR,ORUP,XORUP} and then having the rb code look like e.g.
_RB_OPUP(parent, field, ^, elmdir);
instead of _RB_XORUP(parent, field, elmdir).
Oct 3 2025
Oct 2 2025
asomers feedback: use ATF_REQUIRE_EQ family of tests.
Oct 1 2025
Apologies, trying to recall. IIRC...
Sep 30 2025
mjg feedback: indicate when i_din2 is NULL
Alternately, we could fib and do
printf(", extsize=%d", ip->i_din2 != NULL ? ip->i_din2->di_extsize : 0);Sure, I'm ambivalent, I just wanted to fix the trap. I'll prepare the patch.
Nov 13 2024
Aug 14 2024
I'm okay with the idea but I'm a little worried that it changes the semantics of vm_page_insert / vm_page_insert_after, which I just preserved with the insert_lookup patch. Those two procedures have several callers. However, several of the callers appear to be broken (lacking error checks), so maybe we should audit them all anyway.
Jul 20 2024
Jul 19 2024
After some experiments, I think that [[noreturn]] is not a solution that either clang or g++ will accept.
Jul 17 2024
Hmm, I've been avoiding addressing warnings in contrib...
I guess you can also consider if you want to make the malloc spelling more conventional. Don't need the casts, and can now do sizeof(*asyreq). I'm ambivalent, but in case you hadn't considered it.
I don't know this code but I'm assuming that we don't really care about
the overhead here or performance generally for this ioctl. In other
words, we don't need a longer term fix to do a saner amount of copying,
correct? It seems that we never actually use asyreq->data in the ioctl,
so we're now allocating and passing around an extra 2k because of a
weird definition?
Jul 14 2024
I haven't looked at swap_pager.c yet. I'll get back to that hopefully tonight.