diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-12-03 10:55:48 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 16:19:51 -0500 |
commit | 5a0f4e2c2b47a755e37dbbb6f691e6504e3147b3 (patch) | |
tree | 7eb3d62c1ded113b3e1e1b2f1085245363fbbf35 /fs | |
parent | d527afe1e5865d25a336f6c4157f1086cfbddc81 (diff) |
Btrfs: fix pass of transid with wrong endianness in send.c
fs/btrfs/send.c:2190:9: warning: incorrect type in argument 3 (different base types)
fs/btrfs/send.c:2190:9: expected unsigned long long [unsigned] [usertype] value
fs/btrfs/send.c:2190:9: got restricted __le64 [usertype] ctransid
fs/btrfs/send.c:2195:17: warning: incorrect type in argument 3 (different base types)
fs/btrfs/send.c:2195:17: expected unsigned long long [unsigned] [usertype] value
fs/btrfs/send.c:2195:17: got restricted __le64 [usertype] ctransid
fs/btrfs/send.c:3716:9: warning: incorrect type in argument 3 (different base types)
fs/btrfs/send.c:3716:9: expected unsigned long long [unsigned] [usertype] value
fs/btrfs/send.c:3716:9: got restricted __le64 [usertype] ctransid
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 29803b4129fc..1896e394d59f 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c | |||
@@ -2188,12 +2188,12 @@ static int send_subvol_begin(struct send_ctx *sctx) | |||
2188 | TLV_PUT_UUID(sctx, BTRFS_SEND_A_UUID, | 2188 | TLV_PUT_UUID(sctx, BTRFS_SEND_A_UUID, |
2189 | sctx->send_root->root_item.uuid); | 2189 | sctx->send_root->root_item.uuid); |
2190 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CTRANSID, | 2190 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CTRANSID, |
2191 | sctx->send_root->root_item.ctransid); | 2191 | le64_to_cpu(sctx->send_root->root_item.ctransid)); |
2192 | if (parent_root) { | 2192 | if (parent_root) { |
2193 | TLV_PUT_UUID(sctx, BTRFS_SEND_A_CLONE_UUID, | 2193 | TLV_PUT_UUID(sctx, BTRFS_SEND_A_CLONE_UUID, |
2194 | sctx->parent_root->root_item.uuid); | 2194 | sctx->parent_root->root_item.uuid); |
2195 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CLONE_CTRANSID, | 2195 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CLONE_CTRANSID, |
2196 | sctx->parent_root->root_item.ctransid); | 2196 | le64_to_cpu(sctx->parent_root->root_item.ctransid)); |
2197 | } | 2197 | } |
2198 | 2198 | ||
2199 | ret = send_cmd(sctx); | 2199 | ret = send_cmd(sctx); |
@@ -3714,7 +3714,7 @@ verbose_printk("btrfs: send_clone offset=%llu, len=%d, clone_root=%llu, " | |||
3714 | TLV_PUT_UUID(sctx, BTRFS_SEND_A_CLONE_UUID, | 3714 | TLV_PUT_UUID(sctx, BTRFS_SEND_A_CLONE_UUID, |
3715 | clone_root->root->root_item.uuid); | 3715 | clone_root->root->root_item.uuid); |
3716 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CLONE_CTRANSID, | 3716 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CLONE_CTRANSID, |
3717 | clone_root->root->root_item.ctransid); | 3717 | le64_to_cpu(clone_root->root->root_item.ctransid)); |
3718 | TLV_PUT_PATH(sctx, BTRFS_SEND_A_CLONE_PATH, p); | 3718 | TLV_PUT_PATH(sctx, BTRFS_SEND_A_CLONE_PATH, p); |
3719 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CLONE_OFFSET, | 3719 | TLV_PUT_U64(sctx, BTRFS_SEND_A_CLONE_OFFSET, |
3720 | clone_root->offset); | 3720 | clone_root->offset); |