]> Git Repo - qemu.git/commit
block/raw-posix: use seek_hole ahead of fiemap
authorTony Breeds <[email protected]>
Thu, 25 Sep 2014 23:14:12 +0000 (09:14 +1000)
committerKevin Wolf <[email protected]>
Mon, 20 Oct 2014 11:41:26 +0000 (13:41 +0200)
commit7c15903789953ead14a417882657d52dc0c19a24
tree9e60d44c6875465077818bc74285f895c8321d87
parent38c4d0aea3e1264c86e282d99560330adf2b6e25
block/raw-posix: use seek_hole ahead of fiemap

try_fiemap() uses FIEMAP_FLAG_SYNC which has a significant performance
impact.

Prefer seek_hole() over fiemap() to avoid this impact where possible.
seek_hole is more widely used and, arguably, has potential to be
optimised in the kernel.

Reported-By: Michael Steffens <[email protected]>
Signed-off-by: Tony Breeds <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Markus Armbruster <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: Pádraig Brady <[email protected]>
Cc: Eric Blake <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/raw-posix.c
This page took 0.026145 seconds and 4 git commands to generate.