]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
block/raw-posix: refactor handle_aiocb_write_zeroes a bit
authorDenis V. Lunev <den@openvz.org>
Fri, 30 Jan 2015 08:42:13 +0000 (11:42 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Feb 2015 16:24:20 +0000 (17:24 +0100)
commit37cc9f7f684ed035da63274daca1594c7ee16213
tree4e0bc8593afb28e7c08ee98ed79a7d807fc805e4
parent0b99171230bcdfe49956f283fc2e51a37efc7bfc
block/raw-posix: refactor handle_aiocb_write_zeroes a bit

move code dealing with a block device to a separate function. This will
allow to implement additional processing for ordinary files.

Please note, that xfs_code has been moved before checking for
s->has_write_zeroes as xfs_write_zeroes does not touch this flag inside.
This makes code a bit more consistent.

CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Peter Lieven <pl@kamp.de>
CC: Fam Zheng <famz@redhat.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c