dm bufio: call adjust_total_allocated from __link_buffer and __unlink_buffer
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 12 Sep 2019 08:44:44 +0000 (10:44 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 13 Sep 2019 14:42:27 +0000 (10:42 -0400)
commit26d2ef0cd0f7c12aa331b502c1c1460b85ebd04f
treee25b635d574645d3ea754e931a8081fb7edc574e
parent7431b7835f554f8608b415a02cf3c3f086309e02
dm bufio: call adjust_total_allocated from __link_buffer and __unlink_buffer

Move the call to adjust_total_allocated() to __link_buffer() and
__unlink_buffer() so that only used buffers are counted.  Reserved
buffers are not.

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