commit | 6fbeb0048e6b93f7b7f195864f3ddc876ac4d42e | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Fri Feb 07 15:59:25 2020 -0500 |
committer | Mike Snitzer <snitzer@redhat.com> | Fri May 15 10:29:35 2020 -0400 |
tree | d4e81956f5c878632bdd583caa7bc0c3244c3b37 | |
parent | d3c7b35c20d60650bac8b55c17b194adda03a979 [diff] |
dm bufio: implement discard Add functions dm_bufio_issue_discard and dm_bufio_discard_buffers. dm_bufio_issue_discard sends discard request to the underlying device. dm_bufio_discard_buffers frees buffers in the range and then calls dm_bufio_issue_discard. Also, factor out block_to_sector for reuse in dm_bufio_issue_discard. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>