Skip to content

Commit 1cfe379

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: use zi more in xfs_zone_gc_mount
Use the local variable instead of the extra pointer dereference when starting the GC thread. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 9b03059 commit 1cfe379

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fs/xfs/xfs_zone_gc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,16 +1182,16 @@ xfs_zone_gc_mount(
11821182
goto out_put_gc_zone;
11831183
}
11841184

1185-
mp->m_zone_info->zi_gc_thread = kthread_create(xfs_zoned_gcd, data,
1185+
zi->zi_gc_thread = kthread_create(xfs_zoned_gcd, data,
11861186
"xfs-zone-gc/%s", mp->m_super->s_id);
1187-
if (IS_ERR(mp->m_zone_info->zi_gc_thread)) {
1187+
if (IS_ERR(zi->zi_gc_thread)) {
11881188
xfs_warn(mp, "unable to create zone gc thread");
1189-
error = PTR_ERR(mp->m_zone_info->zi_gc_thread);
1189+
error = PTR_ERR(zi->zi_gc_thread);
11901190
goto out_free_gc_data;
11911191
}
11921192

11931193
/* xfs_zone_gc_start will unpark for rw mounts */
1194-
kthread_park(mp->m_zone_info->zi_gc_thread);
1194+
kthread_park(zi->zi_gc_thread);
11951195
return 0;
11961196

11971197
out_free_gc_data:

0 commit comments

Comments
 (0)