Skip to content

Commit 0ca9558

Browse files
Ryan Moellertonyhutter
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. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes openzfs#12361
1 parent c2c4d05 commit 0ca9558

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

@@ -1439,7 +1437,6 @@ zvol_task_alloc(zvol_async_op_t op, const char *name1, const char *name2,
14391437
uint64_t value)
14401438
{
14411439
zvol_task_t *task;
1442-
char *delim;
14431440

14441441
/* Never allow tasks on hidden names. */
14451442
if (name1[0] == '$')
@@ -1448,8 +1445,6 @@ zvol_task_alloc(zvol_async_op_t op, const char *name1, const char *name2,
14481445
task = kmem_zalloc(sizeof (zvol_task_t), KM_SLEEP);
14491446
task->op = op;
14501447
task->value = value;
1451-
delim = strchr(name1, '/');
1452-
strlcpy(task->pool, name1, delim ? (delim - name1 + 1) : MAXNAMELEN);
14531448

14541449
strlcpy(task->name1, name1, MAXNAMELEN);
14551450
if (name2 != NULL)

0 commit comments

Comments
 (0)