diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-05-27 07:04:46 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-06-04 20:57:38 -0400 |
commit | a1c979f330cb82cae7a3b19464f9815e43060fe3 (patch) | |
tree | d0e7a8661a2523b443ee0f7db1108c8d73a74fe6 /include/linux/dm-bufio.h | |
parent | b4756d43a1dd2cfb778eb3cef3ba2efd2dcd5263 (diff) | |
download | linux-a1c979f330cb82cae7a3b19464f9815e43060fe3.tar.gz linux-a1c979f330cb82cae7a3b19464f9815e43060fe3.tar.bz2 linux-a1c979f330cb82cae7a3b19464f9815e43060fe3.zip |
dm bufio: delete unused and inefficient dm_bufio_discard_buffers
There is no user for this interface. If in future it is needed it can
be reimplemented to walk the rbtree of buffers instead of doing
block-by-block lookups.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/dm-bufio.h')
-rw-r--r-- | include/linux/dm-bufio.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/dm-bufio.h b/include/linux/dm-bufio.h index 07e1f163e299..5ec6bfbde9ae 100644 --- a/include/linux/dm-bufio.h +++ b/include/linux/dm-bufio.h @@ -124,13 +124,6 @@ int dm_bufio_issue_flush(struct dm_bufio_client *c); int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t count); /* - * Free the specified range of buffers. If a buffer is held by other process, it - * is not freed. If a buffer is dirty, it is discarded without writeback. - * Finally, send the discard request to the device. - */ -int dm_bufio_discard_buffers(struct dm_bufio_client *c, sector_t block, sector_t count); - -/* * Like dm_bufio_release but also move the buffer to the new * block. dm_bufio_write_dirty_buffers is needed to commit the new block. */ |