file-posix: account discard operations
commit1c450366365a01c5c1c354af68b8aac5cf5f18c9
authorAnton Nefedov <anton.nefedov@virtuozzo.com>
Mon, 23 Sep 2019 12:17:36 +0000 (23 15:17 +0300)
committerMax Reitz <mreitz@redhat.com>
Thu, 10 Oct 2019 08:56:18 +0000 (10 10:56 +0200)
treec98cbed4e7d3cba0db9a2e0c94ee77e5f08fb563
parent4989ef5781835bca2d02c621b52328ccb6253b61
file-posix: account discard operations

This will help to identify how many of the user-issued discard operations
(accounted on a device level) have actually suceeded down on the host file
(even though the numbers will not be exactly the same if non-raw format
driver is used (e.g. qcow2 sending metadata discards)).

Note that these numbers will not include discards triggered by
write-zeroes + MAY_UNMAP calls.

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190923121737.83281-9-anton.nefedov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/file-posix.c