OSDN Git Service

raw-posix: raw_co_get_block_status() return value
authorMax Reitz <mreitz@redhat.com>
Fri, 24 Oct 2014 10:57:59 +0000 (12:57 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Nov 2014 11:41:47 +0000 (11:41 +0000)
commitd7f62751a14d1d34c7d388431a3e403ef1fe28a5
treeeff7b0c6051d6f17f6682ca6c2cc4bdd1ca4f454
parente6d7ec32dd315422a023ed3425fe36df8c274eeb
raw-posix: raw_co_get_block_status() return value

Instead of generating the full return value thrice in try_fiemap(),
try_seek_hole() and as a fall-back in raw_co_get_block_status() itself,
generate the value only in raw_co_get_block_status().

While at it, also remove the pnum parameter from try_fiemap() and
try_seek_hole().

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1414148280-17949-3-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c