]> 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)
commit1bcff1b957568d68516303e0f21ae10af91e0c61
treedf17dbb862aee516cf07560d58b2175c95339306
parent289cb31f10443d90fb84b3101b97edc06271770d
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