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> |
---|
|
common/block.c |
---|
include/block.h |
---|