Ilya Dryomov 6484cbe987 rbd: handle DISCARD and WRITE_ZEROES separately
With discard_zeroes_data gone in commit 48920ff2a5a9 ("block: remove
the discard_zeroes_data flag"), continuing to provide this guarantee is
pointless: applications can't query it and discards can only be used
for deallocating.

Add OBJ_OP_ZEROOUT and move the existing logic under it.  As the first
step to divorcing OBJ_OP_DISCARD, stop worrying about copyups but keep
special casing whole-object layered discards.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-05 18:55:17 +01:00
..
2018-12-16 09:01:38 -07:00
2019-01-02 18:49:58 -08:00
2018-10-25 06:50:48 -07:00
2018-10-17 09:42:30 -06:00
2018-10-17 09:42:30 -06:00
2018-10-15 20:07:56 -06:00
2017-02-20 12:16:15 +01:00
2017-08-18 08:45:29 -06:00
2018-10-16 09:49:18 -06:00
2018-11-09 08:14:14 -07:00
2018-11-10 08:58:48 -06:00
2018-10-15 20:08:24 -06:00
2018-10-26 14:36:21 -07:00