block: Implement discard_range
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 <s.hauer@pengutronix.de>
1 parent a18f5ad commit e488952b9d04fb0fc7dddd31ec639549d71c76b3
@Sascha Hauer Sascha Hauer authored on 13 Dec 2019
Showing 2 changed files
View
common/block.c
View
include/block.h