]> 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)
commit70094fc400a0d1f5b8b0895eb5e6f6d5beed1aa1
treedd6366b202e6c05c3c770014e6e73fe8cd69f77a
parent1e555b874b4587a736f966e74d8faa10831be777
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