dm writecache: use 2-factor allocator arguments
authorKees Cook <keescook@chromium.org>
Mon, 18 Jun 2018 17:50:33 +0000 (10:50 -0700)
committerMike Snitzer <snitzer@redhat.com>
Fri, 22 Jun 2018 18:51:12 +0000 (14:51 -0400)
commit50a7d3ba7c9ac5e0b7e03fc7f420180989361dbf
treeb0a0dd88307ba7fbaa780a7367754b3871299a13
parent7ccdbf85d3b2237cdbdafe6a47673dbdfab4b7a2
dm writecache: use 2-factor allocator arguments

This adjusts the allocator calls to use the 2-factor argument style, as
already done treewide for better defense against allocator overflows.

Signed-off-by: Kees Cook <keescook@chromium.org>
[snitzer: tweaked code to leave assignment in a test alone]
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c