]> git.baikalelectronics.ru Git - 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)
commitf58c5b7c27088b5285ba8babf76575a24a4ea3dc
treedd6366b202e6c05c3c770014e6e73fe8cd69f77a
parent1bcff1b957568d68516303e0f21ae10af91e0c61
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