]> git.baikalelectronics.ru Git - kernel.git/commit
dm bufio: introduce forget_buffer_locked
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Jun 2020 13:34:40 +0000 (15:34 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:41 +0000 (14:59 -0400)
commit1e555b874b4587a736f966e74d8faa10831be777
treedf17dbb862aee516cf07560d58b2175c95339306
parent14c10fe02b38982bae44ff8944040191a1d7c201
dm bufio: introduce forget_buffer_locked

Introduce a function forget_buffer_locked that forgets a range of
buffers. It is more efficient than calling forget_buffer in a loop.

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