]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dm ebs: use dm_bufio_forget_buffers
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Jun 2020 13:34:41 +0000 (15:34 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:42 +0000 (14:59 -0400)
commit334b4fc17275667b38ebfd719714dab0edb83c6a
treedd6366b202e6c05c3c770014e6e73fe8cd69f77a
parent33a180623b6c35f2727daecb63763955af3af1df
dm ebs: use dm_bufio_forget_buffers

Use dm_bufio_forget_buffers instead of a block-by-block loop that
calls dm_bufio_forget. dm_bufio_forget_buffers is faster than the loop
because it searches for used buffers using rb-tree.

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