dm table: fix discard support