Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 864743815E3; Thu, 20 Aug 2026 17:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787247591; cv=none; b=mcIRn7rkAdY5hjTTLV4BdjgWKnJT9biGZien2Nz7BzPeR8HXqAdwwL8+a8Ynfsrl3D3RWLIYuSK5kS0i1ub9J7SkqwMj7j6J5ZKbXilWTS6ctdmRWo9tp3VIBJfkcnXv1T/TL00LUsXimrTCIzxvx9mnc6q5IhP0oNmy0pPWIzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787247591; c=relaxed/simple; bh=C++8S/2dijuFr2gHky5APyfeWCYUC3Rvf+a3ePE3T+o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FSSjLXTpXz6iEjsKLaGFlCxIQiI8b+MOwChTWN2iDr+e1l1lfTVdow3kPHWHSbKB6ltzGbfCL59U8sp27JRm1xBYqzu06MGbWFPV26PxyMTjq+UxkU3VL3kBsacmwGM6PTjG7FRdwpI+7xJbCMGbM/PcZJpQPM/9W4/Q9vbXXZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jfylNWDO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jfylNWDO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98D011F000E9; Thu, 20 Aug 2026 17:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787247590; bh=wEVAoyozzAqs4LWsNWCMTESh0WvtQsZ3/B8bHvZWPJQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jfylNWDOp+gamxswObJ+Z1f+Xl0RqOMPwLyCCTvDsnucjagk3SFGuZ/b0ekZ/ugTp LcbTLd/iqJEEECMgR6oNWFCesk/cvl+FRZLi9tjg2VumpQ4zS41Q3dEpP9lT2wQi1P GkTUOQFMPllxVUOvcbLxsFq05iXdEneBwvQSWVas= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Johannes Thumshirn , Filipe Manana , David Sterba , Sasha Levin Subject: [PATCH 6.6 099/166] btrfs: remove fs_info argument from btrfs_zoned_activate_one_bg() Date: Thu, 20 Aug 2026 16:55:58 +0200 Message-ID: <20260820145214.137854552@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145211.194104353@linuxfoundation.org> References: <20260820145211.194104353@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Filipe Manana [ Upstream commit a232ff90d14657c8637c6e94b606bb5d700a2ecb ] We don't need it since we can grab fs_info from the given space_info. So remove the fs_info argument. Reviewed-by: Johannes Thumshirn Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba Stable-dep-of: 8bc4d7209611 ("btrfs: zoned: fix missing chunk metadata reservation") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/block-group.c | 4 ++-- fs/btrfs/zoned.c | 5 ++--- fs/btrfs/zoned.h | 6 ++---- 3 files changed, 6 insertions(+), 9 deletions(-) --- a/fs/btrfs/block-group.c +++ b/fs/btrfs/block-group.c @@ -3018,7 +3018,7 @@ int btrfs_inc_block_group_ro(struct btrf * We have allocated a new chunk. We also need to activate that chunk to * grant metadata tickets for zoned filesystem. */ - ret = btrfs_zoned_activate_one_bg(fs_info, space_info, true); + ret = btrfs_zoned_activate_one_bg(space_info, true); if (ret < 0) goto out; @@ -4284,7 +4284,7 @@ static void reserve_chunk_space(struct b * We have a new chunk. We also need to activate it for * zoned filesystem. */ - ret = btrfs_zoned_activate_one_bg(fs_info, info, true); + ret = btrfs_zoned_activate_one_bg(info, true); if (ret < 0) return; --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -2457,10 +2457,9 @@ int btrfs_zone_finish_one_bg(struct btrf return ret < 0 ? ret : 1; } -int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, - struct btrfs_space_info *space_info, - bool do_finish) +int btrfs_zoned_activate_one_bg(struct btrfs_space_info *space_info, bool do_finish) { + struct btrfs_fs_info *fs_info = space_info->fs_info; struct btrfs_block_group *bg; int index; --- a/fs/btrfs/zoned.h +++ b/fs/btrfs/zoned.h @@ -81,8 +81,7 @@ bool btrfs_zoned_should_reclaim(const st void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, u64 length); int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info); -int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, - struct btrfs_space_info *space_info, bool do_finish); +int btrfs_zoned_activate_one_bg(struct btrfs_space_info *space_info, bool do_finish); void btrfs_check_active_zone_reservation(struct btrfs_fs_info *fs_info); #else /* CONFIG_BLK_DEV_ZONED */ static inline int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, @@ -253,8 +252,7 @@ static inline int btrfs_zone_finish_one_ return 1; } -static inline int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, - struct btrfs_space_info *space_info, +static inline int btrfs_zoned_activate_one_bg(struct btrfs_space_info *space_info, bool do_finish) { /* Consider all the block groups are active */