Al Viro <v...@zeniv.linux.org.uk> wrote: > The reason we can't overflow on multiplication there, BTW, is that we have > nr <= count, and count has come from weirdly open-coded > DIV_ROUND_UP(size + offset, PAGE_SIZE) > IMO we'd better make it explicit, so how about the following: > > Signed-off-by: Al Viro <v...@zeniv.linux.org.uk>
It seems reasonable. Reviewed-by: David Howells <dhowe...@redhat.com> -- Linux-cachefs mailing list Linux-cachefs@redhat.com https://listman.redhat.com/mailman/listinfo/linux-cachefs