Dave Wysochanski <dwyso...@redhat.com> wrote:

> -     len += sizeof(*buf);
> -     buf = kmalloc(len, GFP_KERNEL);
> +     buf = kmalloc(sizeof(*buf) + len, GFP_KERNEL);

Okay, your V2 is wrong and your V1 is correct (len must include the reserverd
word so that it gets saved onto disk).

David
--
Linux-cachefs mailing list
Linux-cachefs@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-cachefs

Reply via email to