osd: Use new transction fields to represend ops

Now we encode all actions into both old and new fields, we will remove
the old fileds later.

Change-Id: I004559c2b6fd341c53c734013a1c7bb723874eb8
Signed-off-by: Dong Yuan <yuandong1222@gmail.com>
osd: combine different transction op structs with the sanme fields

Actually we don't some many structs, Many ops can use the same struct.

Change-Id: I5c2b28a81619bffd831074683472d354c81da895
Signed-off-by: Dong Yuan <yuandong1222@gmail.com>
osd: update transaction encode/decode

Transaction encode new fields into bl instead of tbl.

When decode from the old format the flag use_tbl will the set to true.

Change-Id: Ie0b78ac3dc6b9c1fd674dbb08c4465f740936f57
Signed-off-by: Dong Yuan <yuandong1222@gmail.com>
osd: transaction get_encoded_bytes() now consider whether use tbl

When use_tbl is true get_encoded_bytes() has the same logic as before,
when use_tbl is false, it has to calculate the encoded bytes.

Change-Id: I9e1827cb866e1e64d7c6a414482d28f91b5b6aff
Signed-off-by: Dong Yuan <yuandong1222@gmail.com>