summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorLiu Bo2018-03-03 02:05:49 +0100
committerDavid Sterba2018-03-26 15:09:42 +0200
commit895a72be411e9a6b40c1062f0f54faca2bb03568 (patch)
treea5f9a530cd399575d66c24dd304c18648b92082b /fs/btrfs/send.c
parentbtrfs: Remove root argument from btrfs_log_dentry_safe (diff)
downloadkernel-qcow2-linux-895a72be411e9a6b40c1062f0f54faca2bb03568.tar.gz
kernel-qcow2-linux-895a72be411e9a6b40c1062f0f54faca2bb03568.tar.xz
kernel-qcow2-linux-895a72be411e9a6b40c1062f0f54faca2bb03568.zip
Btrfs: send: fix typo in TLV_PUT
According to tlv_put()'s prototype, data and attrlen needs to be exchanged in the macro, but seems all callers are already aware of this misorder and are therefore not affected. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r--fs/btrfs/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 6615d849f0f0..1f5748c7d1c7 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -613,9 +613,9 @@ static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr,
}
-#define TLV_PUT(sctx, attrtype, attrlen, data) \
+#define TLV_PUT(sctx, attrtype, data, attrlen) \
do { \
- ret = tlv_put(sctx, attrtype, attrlen, data); \
+ ret = tlv_put(sctx, attrtype, data, attrlen); \
if (ret < 0) \
goto tlv_put_failure; \
} while (0)