summaryrefslogtreecommitdiff
path: root/include/linux/dm-bufio.h
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2020-05-27 14:04:46 +0300
committerMike Snitzer <snitzer@redhat.com>2020-06-05 03:57:38 +0300
commita1c979f330cb82cae7a3b19464f9815e43060fe3 (patch)
treed0e7a8661a2523b443ee0f7db1108c8d73a74fe6 /include/linux/dm-bufio.h
parentb4756d43a1dd2cfb778eb3cef3ba2efd2dcd5263 (diff)
downloadlinux-a1c979f330cb82cae7a3b19464f9815e43060fe3.tar.xz
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.h7
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.
*/