diff options
| author | Eric Blake | 2017-05-05 04:14:59 +0200 |
|---|---|---|
| committer | Fam Zheng | 2017-06-30 15:48:06 +0200 |
| commit | fb0d8654ffc3ea1494067327fc4c4da5d0872724 (patch) | |
| tree | af7bb87f837463be3a8440529f1fcd492c648d52 /scripts/modules | |
| parent | Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.10-20170630' int... (diff) | |
| download | qemu-fb0d8654ffc3ea1494067327fc4c4da5d0872724.tar.gz qemu-fb0d8654ffc3ea1494067327fc4c4da5d0872724.tar.xz qemu-fb0d8654ffc3ea1494067327fc4c4da5d0872724.zip | |
block: Add BDRV_BLOCK_EOF to bdrv_get_block_status()
Just as the block layer already sets BDRV_BLOCK_ALLOCATED as a
shortcut for subsequent operations, there are also some optimizations
that are made easier if we can quickly tell that *pnum will advance
us to the end of a file, via a new BDRV_BLOCK_EOF which gets set
by the block layer.
This just plumbs up the new bit; subsequent patches will make use
of it.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170505021500.19315-2-eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
