Skip to content

Commit 19083f0

Browse files
Ryan MoellerRyan Moeller
authored andcommitted
Remove unused fields from zvol_task_t
We don't use or need the pool name or value source in the zvol tasks. Signed-off-by: Ryan Moeller <[email protected]>
1 parent 1325434 commit 19083f0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

module/zfs/zvol.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ typedef enum {
106106

107107
typedef struct {
108108
zvol_async_op_t op;
109-
char pool[MAXNAMELEN];
110109
char name1[MAXNAMELEN];
111110
char name2[MAXNAMELEN];
112-
zprop_source_t source;
113111
uint64_t value;
114112
} zvol_task_t;
115113

@@ -1435,7 +1433,6 @@ zvol_task_alloc(zvol_async_op_t op, const char *name1, const char *name2,
14351433
uint64_t value)
14361434
{
14371435
zvol_task_t *task;
1438-
char *delim;
14391436

14401437
/* Never allow tasks on hidden names. */
14411438
if (name1[0] == '$')
@@ -1444,8 +1441,6 @@ zvol_task_alloc(zvol_async_op_t op, const char *name1, const char *name2,
14441441
task = kmem_zalloc(sizeof (zvol_task_t), KM_SLEEP);
14451442
task->op = op;
14461443
task->value = value;
1447-
delim = strchr(name1, '/');
1448-
strlcpy(task->pool, name1, delim ? (delim - name1 + 1) : MAXNAMELEN);
14491444

14501445
strlcpy(task->name1, name1, MAXNAMELEN);
14511446
if (name2 != NULL)

0 commit comments

Comments
 (0)