Commit 3fef46fc authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: rename the blockgc workqueue

Since we're about to start using the blockgc workqueue to dispose of
inactivated inodes, strip the "block" prefix from the name; now it's
merely the general garbage collection (gc) workqueue.
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 383e32b0
...@@ -522,7 +522,7 @@ and the short name of the data device. They all can be found in: ...@@ -522,7 +522,7 @@ and the short name of the data device. They all can be found in:
================ =========== ================ ===========
xfs_iwalk-$pid Inode scans of the entire filesystem. Currently limited to xfs_iwalk-$pid Inode scans of the entire filesystem. Currently limited to
mount time quotacheck. mount time quotacheck.
xfs-blockgc Background garbage collection of disk space that have been xfs-gc Background garbage collection of disk space that have been
speculatively allocated beyond EOF or for staging copy on speculatively allocated beyond EOF or for staging copy on
write operations. write operations.
================ =========== ================ ===========
......
...@@ -1335,7 +1335,7 @@ xfs_blockgc_queue( ...@@ -1335,7 +1335,7 @@ xfs_blockgc_queue(
{ {
rcu_read_lock(); rcu_read_lock();
if (radix_tree_tagged(&pag->pag_ici_root, XFS_ICI_BLOCKGC_TAG)) if (radix_tree_tagged(&pag->pag_ici_root, XFS_ICI_BLOCKGC_TAG))
queue_delayed_work(pag->pag_mount->m_blockgc_workqueue, queue_delayed_work(pag->pag_mount->m_gc_workqueue,
&pag->pag_blockgc_work, &pag->pag_blockgc_work,
msecs_to_jiffies(xfs_blockgc_secs * 1000)); msecs_to_jiffies(xfs_blockgc_secs * 1000));
rcu_read_unlock(); rcu_read_unlock();
......
...@@ -93,7 +93,7 @@ typedef struct xfs_mount { ...@@ -93,7 +93,7 @@ typedef struct xfs_mount {
struct workqueue_struct *m_unwritten_workqueue; struct workqueue_struct *m_unwritten_workqueue;
struct workqueue_struct *m_cil_workqueue; struct workqueue_struct *m_cil_workqueue;
struct workqueue_struct *m_reclaim_workqueue; struct workqueue_struct *m_reclaim_workqueue;
struct workqueue_struct *m_blockgc_workqueue; struct workqueue_struct *m_gc_workqueue;
struct workqueue_struct *m_sync_workqueue; struct workqueue_struct *m_sync_workqueue;
int m_bsize; /* fs logical block size */ int m_bsize; /* fs logical block size */
......
...@@ -519,10 +519,10 @@ xfs_init_mount_workqueues( ...@@ -519,10 +519,10 @@ xfs_init_mount_workqueues(
if (!mp->m_reclaim_workqueue) if (!mp->m_reclaim_workqueue)
goto out_destroy_cil; goto out_destroy_cil;
mp->m_blockgc_workqueue = alloc_workqueue("xfs-blockgc/%s", mp->m_gc_workqueue = alloc_workqueue("xfs-gc/%s",
WQ_SYSFS | WQ_UNBOUND | WQ_FREEZABLE | WQ_MEM_RECLAIM, WQ_SYSFS | WQ_UNBOUND | WQ_FREEZABLE | WQ_MEM_RECLAIM,
0, mp->m_super->s_id); 0, mp->m_super->s_id);
if (!mp->m_blockgc_workqueue) if (!mp->m_gc_workqueue)
goto out_destroy_reclaim; goto out_destroy_reclaim;
mp->m_sync_workqueue = alloc_workqueue("xfs-sync/%s", mp->m_sync_workqueue = alloc_workqueue("xfs-sync/%s",
...@@ -533,7 +533,7 @@ xfs_init_mount_workqueues( ...@@ -533,7 +533,7 @@ xfs_init_mount_workqueues(
return 0; return 0;
out_destroy_eofb: out_destroy_eofb:
destroy_workqueue(mp->m_blockgc_workqueue); destroy_workqueue(mp->m_gc_workqueue);
out_destroy_reclaim: out_destroy_reclaim:
destroy_workqueue(mp->m_reclaim_workqueue); destroy_workqueue(mp->m_reclaim_workqueue);
out_destroy_cil: out_destroy_cil:
...@@ -551,7 +551,7 @@ xfs_destroy_mount_workqueues( ...@@ -551,7 +551,7 @@ xfs_destroy_mount_workqueues(
struct xfs_mount *mp) struct xfs_mount *mp)
{ {
destroy_workqueue(mp->m_sync_workqueue); destroy_workqueue(mp->m_sync_workqueue);
destroy_workqueue(mp->m_blockgc_workqueue); destroy_workqueue(mp->m_gc_workqueue);
destroy_workqueue(mp->m_reclaim_workqueue); destroy_workqueue(mp->m_reclaim_workqueue);
destroy_workqueue(mp->m_cil_workqueue); destroy_workqueue(mp->m_cil_workqueue);
destroy_workqueue(mp->m_unwritten_workqueue); destroy_workqueue(mp->m_unwritten_workqueue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment