Skip to contentSkip to conversation

xfs: use zi more in xfs_zone_gc_mount

PATCH Applied Christoph Hellwig 3 participants 3 messages Nov 18, 2025 – Nov 22, 2025 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: use zi more in xfs_zone_gc_mount

Use the local variable instead of the extra pointer dereference when starting the GC thread.

---
 fs/xfs/xfs_zone_gc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
fs/xfs/xfs_zone_gc.c +4 -4
index 63afc3caf2b7..dda0bf205bd2 100644
@@ -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:
Signature · 1 line
2.47.3
maintainer Applied
#2 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

Use the local variable instead of the extra pointer dereference when starting the GC thread.

Applied to for-next, thanks!

[1/1] xfs: use zi more in xfs_zone_gc_mount

      commit: 1cfe3795c152c7415a9f49fc1e7f623c855d14ab

Best regards,

Signature · 1 line
Carlos Maiolino <[email protected]>