block: rename BlkTransactionState and BdrvActionOps
commit50f43f0ff9a640b901b2657492d642e14a57bd4d
authorJohn Snow <jsnow@redhat.com>
Thu, 5 Nov 2015 23:13:09 +0000 (5 18:13 -0500)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Nov 2015 15:22:43 +0000 (12 16:22 +0100)
tree9fd9084f41a071c6225c0a4907b6e331ad6c318c
parent749ad5e887e85fd51d83bf4d08ed72858f937fd9
block: rename BlkTransactionState and BdrvActionOps

These structures are misnomers, somewhat.

(1) BlockTransactionState is not state for a transaction,
    but is rather state for a single transaction action.
    Rename it "BlkActionState" to be more accurate.

(2) The BdrvActionOps describes operations for the BlkActionState,
    above. This name might imply a 'BdrvAction' or a 'BdrvActionState',
    which there isn't.
    Rename this to 'BlkActionOps' to match 'BlkActionState'.

Lastly, update the surrounding in-line documentation and comments
to reflect the current nature of how Transactions operate.

This patch changes only comments and names, and should not affect
behavior in any way.

Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1446765200-3054-4-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c