[dm-devel] [dm:for-next 8/9] drivers//md/dm-log-writes.c:279:17: note: in expansion of macro 'min'
Mike Snitzer
snitzer at redhat.com
Tue Oct 24 22:55:04 UTC 2017
On Tue, Oct 24 2017 at 5:50pm -0400,
Ross Zwisler <ross.zwisler at linux.intel.com> wrote:
> So I think this just needs to be
>
> pg_datalen = min((int)datalen, PAGE_SIZE);
>
> since the resulting pg_datalen is also an int.
>
> Mike can you fix up, or would you like an updated patch (or follow-on patch)
> from me?
I went with: pg_datalen = min_t(int, datalen, PAGE_SIZE);
I've fixed it up and pushed it out to linux-next.
Mike
More information about the dm-devel
mailing list