aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2021-07-19 12:02:35 -0400
committerTony Hutter <[email protected]>2021-09-14 12:39:17 -0700
commit0ca95585616765154a1d9a9d61f965a16a1feaa6 (patch)
treeaac9df351f7748fe5532bd55b4ff229aa2d29ef3
parentc2c4d05700008d245b0a703ad95fe47b36105a9a (diff)
Remove unused fields from zvol_task_t
We don't use or need the pool name or value source in the zvol tasks. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #12361
-rw-r--r--module/zfs/zvol.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c
index b6609363f..8b50301e1 100644
--- a/module/zfs/zvol.c
+++ b/module/zfs/zvol.c
@@ -106,10 +106,8 @@ typedef enum {
typedef struct {
zvol_async_op_t op;
- char pool[MAXNAMELEN];
char name1[MAXNAMELEN];
char name2[MAXNAMELEN];
- zprop_source_t source;
uint64_t value;
} zvol_task_t;
@@ -1439,7 +1437,6 @@ zvol_task_alloc(zvol_async_op_t op, const char *name1, const char *name2,
uint64_t value)
{
zvol_task_t *task;
- char *delim;
/* Never allow tasks on hidden names. */
if (name1[0] == '$')
@@ -1448,8 +1445,6 @@ zvol_task_alloc(zvol_async_op_t op, const char *name1, const char *name2,
task = kmem_zalloc(sizeof (zvol_task_t), KM_SLEEP);
task->op = op;
task->value = value;
- delim = strchr(name1, '/');
- strlcpy(task->pool, name1, delim ? (delim - name1 + 1) : MAXNAMELEN);
strlcpy(task->name1, name1, MAXNAMELEN);
if (name2 != NULL)