]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33c807ce7d3715f599147097e44c90220751b543
treec8b573703f28e73a3603d5f9df6b2e39d138331f
parent427a07a677c4f6c93cbf533945f997e677454106
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