[1/7] btrfs: get rid of unnecessary memset() of work item
diff mbox series

Message ID 5d25104c72198a164eee3756ae8e3b5664f02079.1568658527.git.osandov@fb.com
State New
Headers show
Series
  • btrfs: workqueue fixes+cleanups
Related show

Commit Message

Omar Sandoval Sept. 16, 2019, 6:30 p.m. UTC
From: Omar Sandoval <osandov@fb.com>

Commit fc97fab0ea59 ("btrfs: Replace fs_info->qgroup_rescan_worker
workqueue with btrfs_workqueue.") converted qgroup_rescan_work to be
initialized with btrfs_init_work(), but it left behind an unnecessary
memset(). Get rid of the memset().

Signed-off-by: Omar Sandoval <osandov@fb.com>
---
 fs/btrfs/qgroup.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Johannes Thumshirn Sept. 17, 2019, 11:46 a.m. UTC | #1
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>

Patch
diff mbox series

diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 8d3bd799ac7d..b2b8ceaff467 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -3272,8 +3272,6 @@  qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid,
 	spin_unlock(&fs_info->qgroup_lock);
 	mutex_unlock(&fs_info->qgroup_rescan_lock);
 
-	memset(&fs_info->qgroup_rescan_work, 0,
-	       sizeof(fs_info->qgroup_rescan_work));
 	btrfs_init_work(&fs_info->qgroup_rescan_work,
 			btrfs_qgroup_rescan_helper,
 			btrfs_qgroup_rescan_worker, NULL, NULL);