From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 334E03A48E4; Wed, 9 Sep 2026 06:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788934264; cv=none; b=o8TX5jV+Rv2qsACjWVZQhBpAq6lA08QwXQ7qk/QbHmlGpxrxCpl6rG9v4l+5P1xIrIzxJ2m4vsfgBUqB1G5MJdBG7QmwPp5jbLgtqEBtGssZiiw5FSczaWRmJCRBzo9xOfSyG+dRBqn0H8iF3E3ra9IjeiuF0li2g90uzCvV4OQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788934264; c=relaxed/simple; bh=1TNzZ7sjG6VwpfGRkiRQNPR4jovUmI3AvioGiiI0+zE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ucDOgkKhMKtYZB0HC0Q2L79NNUP7AqfZXVefpvPJ5Q21J6bPwhfxC5+tkAMRi7ApyLIgJy2oIFwgeDBBEwnPZcoKilMkhS7xlQb7p+6QKObhntzrbwetU4oSX0ao1KZwR/zjzNbGSZWg4ZWKfnCUWA/ha7tqVqkJ2rKTP0emYfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=WHh0iJS3; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="WHh0iJS3" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=jtsndzrGjc60AU1LrjPLVnSNBjTH8u95z3/ZmN5miUo=; b=WHh0iJS31SasCV5SjscNKICHZ7 8nqcPejXDhE3hprg1ZzzEuZA9W5PMhj3dBBb++5nHCNjalHRZnrRyrlttRSyzB7QRCwmdJYl455VE CTeDnyLcHYZY0azRZRV24zeXAQqAIRvHG4134GbDzuiI60vJTHkUQEJ3NszFHZG5gs7CvLyTRZ9Yq 2abboAywdY6R+NIfhr7NQ4mqhVt5vzVmWvdYS79ESkYQr2yToZjA3894LpM5UcfoqWaEcZ7NJAep3 WH3e843iNtsRuygATUvG7vuhpCsPPDfdAZMDlekMM7T5IKP/7TPP/8pbjE6H6WKdI//nelHdiN8Tp YM1FSrXA==; Received: from [62.74.3.53] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4BWP-0000000Aqo5-1xIM; Wed, 09 Sep 2026 06:11:01 +0000 From: Christoph Hellwig To: Jens Axboe , Christian Brauner , "Darrick J. Wong" , Carlos Maiolino Cc: Tal Zussman , Anuj Gupta , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 15/16] xfs: log a message at mount time when using integrity protection Date: Wed, 9 Sep 2026 09:09:04 +0300 Message-ID: <20260909060924.1102037-16-hch@lst.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260909060924.1102037-1-hch@lst.de> References: <20260909060924.1102037-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Log a message in the kernel when using T10 protection information. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" --- fs/xfs/xfs_buf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index ee7c2e9c0340..eee491c01d8c 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -5,6 +5,7 @@ */ #include "xfs_platform.h" #include +#include #include #include "xfs_shared.h" @@ -1694,6 +1695,7 @@ xfs_configure_buftarg( struct xfs_mount *mp = btp->bt_mount; if (btp->bt_bdev) { + struct blk_integrity *bi = bdev_get_integrity(btp->bt_bdev); int error; error = bdev_validate_blocksize(btp->bt_bdev, sectorsize); @@ -1706,6 +1708,15 @@ xfs_configure_buftarg( if (bdev_can_atomic_write(btp->bt_bdev)) xfs_configure_buftarg_atomic_writes(btp); + + if (!bi) + ; + else if (btp->bt_bdev == btp->bt_mount->m_super->s_bdev) + xfs_info(mp, "using %s integrity profile", + blk_integrity_profile_name(bi)); + else + xfs_info(mp, "using %s integrity profile for %pg", + blk_integrity_profile_name(bi), btp->bt_bdev); } btp->bt_meta_sectorsize = sectorsize; -- 2.53.0