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)
commit33a180623b6c35f2727daecb63763955af3af1df
treedf17dbb862aee516cf07560d58b2175c95339306
parent88f878e58879acfdad03e08776c9802f9cd6f26a
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