From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1F917188CCA; Wed, 19 Feb 2025 09:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739955870; cv=none; b=MgnE05NN3bc2Lkw83i5rERqjHicpZfeoY88L7RQDrC4rteMxX31MqSVrExF30pvv0Eynuc6+FYKLCcji9IL7LWhup41/N6gSzciRm5UNaVEqg6aMOJZrwrD9cIbK3Szgokvy8eDLDNGWaz4Gt4uiERP5Mb+uB1GfuWjboa0X1n4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739955870; c=relaxed/simple; bh=djru/d3PNXvx5dHChTIonw9qLAsuwBfw8tk4fWiCe5M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ptWD2b1s0sHv+NzufcOuBCxyC7/KtOko64pD19aV8D366/0pnAAR2Q1kH6Jot012OEAJPy8GhfZCNMYzc7Y3feTvASw1HvouL0rjJQT3m6Kjo2RBicQRgQdivKtgNrSUFE6uHHjBWNDlzyE25u5CIC0+1sKz2MPMASNIlPq+wm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pLvTJyKV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pLvTJyKV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C372EC4CEE7; Wed, 19 Feb 2025 09:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739955870; bh=djru/d3PNXvx5dHChTIonw9qLAsuwBfw8tk4fWiCe5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pLvTJyKVDfgLUS2zNLgScImqrDeV/anRa+MxDWI8+Ek8BJCHrGRkneuWyYBdQZekf nQlgirAVxSWX/3zslMjLZUi2M4jCQxf2VD025dghNClRSK1yWjxvkNSYspDusk5zkE k3F/zivL0JcfFEz+B4bOFYFytUBPjkVUTBylQ3PA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yu Kuai , Xiao Ni , Song Liu Subject: [PATCH 6.6 141/152] md: add a new callback pers->bitmap_sector() Date: Wed, 19 Feb 2025 09:29:14 +0100 Message-ID: <20250219082555.624883164@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250219082550.014812078@linuxfoundation.org> References: <20250219082550.014812078@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org 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: Yu Kuai commit 0c984a283a3ea3f10bebecd6c57c1d41b2e4f518 upstream. This callback will be used in raid5 to convert io ranges from array to bitmap. Signed-off-by: Yu Kuai Reviewed-by: Xiao Ni Link: https://lore.kernel.org/r/20250109015145.158868-4-yukuai1@huaweicloud.com Signed-off-by: Song Liu Signed-off-by: Greg Kroah-Hartman --- drivers/md/md.h | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -661,6 +661,9 @@ struct md_personality void *(*takeover) (struct mddev *mddev); /* Changes the consistency policy of an active array. */ int (*change_consistency_policy)(struct mddev *mddev, const char *buf); + /* convert io ranges from array to bitmap */ + void (*bitmap_sector)(struct mddev *mddev, sector_t *offset, + unsigned long *sectors); }; struct md_sysfs_entry {