dm bufio: refactor adjust_total_allocated
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 12 Sep 2019 08:44:45 +0000 (10:44 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 13 Sep 2019 14:43:07 +0000 (10:43 -0400)
commitd0a328a385d2d1ab87e7a959d91c1841ed5a498f
treec8b573703f28e73a3603d5f9df6b2e39d138331f
parent26d2ef0cd0f7c12aa331b502c1c1460b85ebd04f
dm bufio: refactor adjust_total_allocated

Refactor adjust_total_allocated() so that it takes a bool argument
indicating if it should add or subtract the buffer size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c