[PATCH 3/4] block: Implement discard_range

2020-02-14 Thread Sascha Hauer
This implements the discard_range hook. When a range of data is discarded then we do not have to read it from the device and can pass a zeroed buffer instead. Signed-off-by: Sascha Hauer --- common/block.c | 21 + include/block.h | 3 +++ 2 files changed, 24 insertions(+)

[PATCH 3/4] block: Implement discard_range

2019-12-13 Thread Sascha Hauer
This implements the discard_range hook. When a range of data is discarded then we do not have to read it from the device and can pass a zeroed buffer instead. Signed-off-by: Sascha Hauer --- common/block.c | 21 + include/block.h | 3 +++ 2 files changed, 24 insertions(+)