Message ID | 20231025141020.192413-3-hch@lst.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C89CEC25B70 for <linux-mm@archiver.kernel.org>; Wed, 25 Oct 2023 14:10:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 293196B0305; Wed, 25 Oct 2023 10:10:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1CF416B0307; Wed, 25 Oct 2023 10:10:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 047916B0309; Wed, 25 Oct 2023 10:10:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E99316B0305 for <linux-mm@kvack.org>; Wed, 25 Oct 2023 10:10:43 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id B926A803AB for <linux-mm@kvack.org>; Wed, 25 Oct 2023 14:10:43 +0000 (UTC) X-FDA: 81384169566.19.62CFBBB Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf29.hostedemail.com (Postfix) with ESMTP id E8B3112001F for <linux-mm@kvack.org>; Wed, 25 Oct 2023 14:10:41 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=NkupXjjQ; dmarc=none; spf=none (imf29.hostedemail.com: domain of BATV+38ff0d3703fb120512f4+7367+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+38ff0d3703fb120512f4+7367+infradead.org+hch@bombadil.srs.infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698243042; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eQkFS0CPXyYdJjvcxwO874+N6FHj6qkC07nIc5KQ7Fc=; b=0iUlt42aa5EGQrP6kQhRHPDXtppb3GrSEs4i269lt7lS2VWOxQI1y+xhbLRcok6KGZs6o1 yx6tPjs5Y3OWwFKWtC5/Fw/DGVItIKmNwEQ5uXpPkEd1NPE0q7DqnEXTJN0lU9UbSckY12 LsBwEQQn8QhuUMFc8blHo4FRw6Iwglg= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=NkupXjjQ; dmarc=none; spf=none (imf29.hostedemail.com: domain of BATV+38ff0d3703fb120512f4+7367+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+38ff0d3703fb120512f4+7367+infradead.org+hch@bombadil.srs.infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698243042; a=rsa-sha256; cv=none; b=zknRO2yAnA88X4NTxXXAkGiDudeF/fSGLCRxjLLjfK4fXWHZ6N2eoPOErsS203yw1yvTBt JYZniJ+LQD54UwB2Ixo5KDGMdMCWrY/ur8KhYfe3M6kIUsRQCdXQLYywumFzE95r/Kr5LI bQXD1vahQOYeQyIq3g44TU7L8XHG+7A= 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=eQkFS0CPXyYdJjvcxwO874+N6FHj6qkC07nIc5KQ7Fc=; b=NkupXjjQ3bzL5mbyZ8icwT06pw ektizSCeFbKc39Orvb0x8fTzJ1oLB74rAYmYPqIbjS+fyCfCbMOy66EZxYkrekM6Cn6PghALK5LJ6 JtRDjTtq62PUPTC4s0HvcuM8KPOjeaSXWnNsbMThbqD9AKBUqzTUu7vJdIzrmxjJupxwgJAPXfiYk txfYJX8o7U5BHxwpLEcz4Se3hhRRYMrzEGaqL+b+tpoGOqW82ZVGsfn8vbkhhWPmS/lCmtBU/nVGK LKh8pkdcKzEaIruwf0QCn5HY8bWUuuTuz3kDbTflXeYwIRyujn0pcmEWGrPxaNsxJeeH1EWYwXsAu WyHCdRVQ==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qveak-00CTxA-04; Wed, 25 Oct 2023 14:10:38 +0000 From: Christoph Hellwig <hch@lst.de> To: Jens Axboe <axboe@kernel.dk>, Matthew Wilcox <willy@infradead.org> Cc: Ilya Dryomov <idryomov@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, "Darrick J . Wong" <djwong@kernel.org> Subject: [PATCH 2/4] block: update the stable_writes flag in bdev_add Date: Wed, 25 Oct 2023 16:10:18 +0200 Message-Id: <20231025141020.192413-3-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231025141020.192413-1-hch@lst.de> References: <20231025141020.192413-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from <hch@infradead.org> by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspamd-Queue-Id: E8B3112001F X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: a8mqqq5ngpi7ouiwntyjjweaxibcew5t X-HE-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dOFb7PJhepfYRYiwJ/dkmIQRzuunQ4yCdT9GNyPl6eiL9wuAEhZoWi82866cC4Ce6IwYN2o0xO4G3yi4fxzBvcKlY0ZhYokw9+YRgpXZWYH0cyrGyPVTf6oSNXGSkkIBWRtzD3sy8nlDqDbHYRiJQ1xNBEM7yoUBoeFFRJUpyU4Ki3iJBpfMCh8kQWfvWtMenthtp3gmg/IQvf7vRkqBW0EtOZJpGiTlyIZdY81RBBcPCJq8dpOwARsdj5+9YjGSGn373//mODRF4jrqVZSD12Ygya/kLVe9RaXzZf57kN5Fxq5Y8ADuzTeinQJD3HOJVowjpBiFqgPis1SfAcmjPSw3iYPr6CA4RZjG5xbX1CqThvIDAyD8ub/hBWD1ed4hKcuoqDghbDtXOEExG0a4V/elXrAiXW1MSQ7HeEiMlKjNCjeFPRwr3oDdNGu0LGf+AxwqFGNgmH2R9HcB0I40PoyOrza X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[1/4] filemap: add a per-mapping stable writes flag
|
expand
|
diff --git a/block/bdev.c b/block/bdev.c index f3b13aa1b7d428..04dba25b0019eb 100644 --- a/block/bdev.c +++ b/block/bdev.c @@ -425,6 +425,8 @@ void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors) void bdev_add(struct block_device *bdev, dev_t dev) { + if (bdev_stable_writes(bdev)) + mapping_set_stable_writes(bdev->bd_inode->i_mapping); bdev->bd_dev = dev; bdev->bd_inode->i_rdev = dev; bdev->bd_inode->i_ino = dev;