Commit ca182acc authored by Omar Sandoval's avatar Omar Sandoval Committed by David Sterba

btrfs: send: remove unused send_ctx::{total,cmd}_send_size

We collect these statistics but have never exposed them in any way. I
also didn't find any patches that ever attempted to make use of them.
Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 22c55e3b
...@@ -82,8 +82,6 @@ struct send_ctx { ...@@ -82,8 +82,6 @@ struct send_ctx {
char *send_buf; char *send_buf;
u32 send_size; u32 send_size;
u32 send_max_size; u32 send_max_size;
u64 total_send_size;
u64 cmd_send_size[BTRFS_SEND_C_MAX + 1];
u64 flags; /* 'flags' member of btrfs_ioctl_send_args is u64 */ u64 flags; /* 'flags' member of btrfs_ioctl_send_args is u64 */
/* Protocol version compatibility requested */ /* Protocol version compatibility requested */
u32 proto; u32 proto;
...@@ -734,8 +732,6 @@ static int send_cmd(struct send_ctx *sctx) ...@@ -734,8 +732,6 @@ static int send_cmd(struct send_ctx *sctx)
ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size,
&sctx->send_off); &sctx->send_off);
sctx->total_send_size += sctx->send_size;
sctx->cmd_send_size[get_unaligned_le16(&hdr->cmd)] += sctx->send_size;
sctx->send_size = 0; sctx->send_size = 0;
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment