summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_zone_gc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2025-11-18 09:49:42 +0300
committerCarlos Maiolino <cem@kernel.org>2025-11-20 15:32:58 +0300
commit1cfe3795c152c7415a9f49fc1e7f623c855d14ab (patch)
treeda259c9f1393f33232c324b31fdbfc8f7711e42c /fs/xfs/xfs_zone_gc.c
parent9b0305968d60a7672a7db29c07cfbe03bc5ae3ab (diff)
downloadlinux-1cfe3795c152c7415a9f49fc1e7f623c855d14ab.tar.xz
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>
Diffstat (limited to 'fs/xfs/xfs_zone_gc.c')
-rw-r--r--fs/xfs/xfs_zone_gc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_zone_gc.c b/fs/xfs/xfs_zone_gc.c
index b6a2ecca2e49..3c52cc1497d4 100644
--- a/fs/xfs/xfs_zone_gc.c
+++ b/fs/xfs/xfs_zone_gc.c
@@ -1182,16 +1182,16 @@ xfs_zone_gc_mount(
goto out_put_gc_zone;
}
- mp->m_zone_info->zi_gc_thread = kthread_create(xfs_zoned_gcd, data,
+ zi->zi_gc_thread = kthread_create(xfs_zoned_gcd, data,
"xfs-zone-gc/%s", mp->m_super->s_id);
- if (IS_ERR(mp->m_zone_info->zi_gc_thread)) {
+ if (IS_ERR(zi->zi_gc_thread)) {
xfs_warn(mp, "unable to create zone gc thread");
- error = PTR_ERR(mp->m_zone_info->zi_gc_thread);
+ error = PTR_ERR(zi->zi_gc_thread);
goto out_free_gc_data;
}
/* xfs_zone_gc_start will unpark for rw mounts */
- kthread_park(mp->m_zone_info->zi_gc_thread);
+ kthread_park(zi->zi_gc_thread);
return 0;
out_free_gc_data: