Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp454334lqp; Mon, 10 Jun 2024 09:01:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQNMSXlPIGQ6wveq+drqmpyLOG5rneB80guODrCvNFEVx9UQUWVDA91PDZThr5ThfOL+aBW1MwgfesUGeRBmnyaPJ10kFnuRWPJC147A== X-Google-Smtp-Source: AGHT+IFbrTM+S1uDoQY+hROK/AKLDc7+VPVUdpIETFpBSsjj/Ml+7Ow/wZPE5nUhUoViW+WTDqA4 X-Received: by 2002:a17:906:2689:b0:a6e:7720:7e39 with SMTP id a640c23a62f3a-a6f34c563dcmr7008166b.8.1718035259957; Mon, 10 Jun 2024 09:00:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718035259; cv=pass; d=google.com; s=arc-20160816; b=gQvkvDi5Bb2uuyEJChfc8krMeGMMZmTxLOM2l6i7KtVf+OfWyNYj5dOqcIHeCjwcS+ X0rYz6NBPNLW4T1+bYNcOlBjLZvrxMwhqhSboDKL2n0WX7W1BWKZ3aDFfZqQGSstDXOB i/csO+nVmEXEKPPaE1UtuBxJJYy9wlOFAdgcXrgzGPIZClPECfjILlYTTTrfgcZzWbp1 NvdIeXKJqduzjKa+4impUmQT79OsKSx9RBcmYs23KhBDdadAEcgo/9eFWnoKuE5lJPdG aFb2aXuN8c4R4eS6ZaGSU/LwJTfPofg031vvFEN0FazxYqGWm4V0WkayeUrwWQbcWCRD NIWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=V2uFsjZY59HKl17I9IjmNWHWtW0Dkg82qvwOhOjzL78=; fh=Cf77Q8e/RTVWIhHQF+dA6EMKOtPn+lHd4HhNFZi6IdU=; b=pQBatSsq+7sD9hpuUps5lDBwkpzAtal7mXNTFCFGRL3Nbixo22SiehBtOqSr2Das1x KmCWPlZGYsN3k/wa9Sm6S2CDOI+SypxJxkE/AA8m0FmCOHRm7oalmMsW5Y1g/ezheZqA lUt5SuCgMGHeAPuVmrUntmFIrDSaozN3kGdxbIgAZAoyh1BjVMaYRHu63CTx2gLKS13T f9kby+d6yue+LUDe9CNcLe1OdIKcfwjlOzbdHiw5SlnBD/8TiQW81peO9Uue5E9uSxvC 3q/W7k8uNs8R8RdF5VkTDNFsifOCySjTgE57vP9tv+jswRAXuhEL+GAkjEXcSdIrFynX /3pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X9y2KBuQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-208523-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f209a55e2si96752066b.129.2024.06.10.09.00.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 09:00:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208523-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X9y2KBuQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-208523-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A6B2A1F23259 for ; Mon, 10 Jun 2024 16:00:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE48D143720; Mon, 10 Jun 2024 16:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X9y2KBuQ" Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C11871E86A; Mon, 10 Jun 2024 16:00:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718035237; cv=none; b=fWnswzrW9N384BACWAlBC0nKGH/iKzJjZgP+NiNg8dBaFaJE+77ykrZ2Yi5aZ2L88hhyYm1fKgXuinV9VzRHZMpQWqvX7duH/UHaWEd4EZ9/lERHtEyLb6c5N895VUpoIkagKSRkL52yzkaM4dQ1hVWoF2qfL5XcOCrUQuuHvYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718035237; c=relaxed/simple; bh=HCVWtCZ8PFOXlB+wK7c+ca5XoCFrgynMHlDeMP6f9bs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=peskzgWocbvgPLHig2t0ZcQMyL7DMpsqV7VrJSSft+AZPMFy57Qt6U2cSopaPXMs75LOpgtUmzrE0Z73fD1A2PdMIiwk5ZBKfzOIbCmbbl8+G3V8+jnheaQMd1GUfTyaz4CYpG+ZJtSfASfwa692k1KZv98LKx14deWRYJCJn94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X9y2KBuQ; arc=none smtp.client-ip=209.85.215.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-6819d785528so3035035a12.3; Mon, 10 Jun 2024 09:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718035235; x=1718640035; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V2uFsjZY59HKl17I9IjmNWHWtW0Dkg82qvwOhOjzL78=; b=X9y2KBuQ+1BDrIfDj+Tn3kjfshA6C6Ql8ymKCqSGcxxU4da14ApEfo7cPo1MQgvVIa z3B6/EgFVYQpRBMQcvO4AMFBJIO+2wZOdKct+fDGQgzYMyp3jxMxsZvSw0HGatg87z7s /KtKYAnemDNCiC/tEKKkhbAvtvjbYFwjDUFvB82cgOdZMvG+BEMaghRz0tjVSHoTuhZ1 V9pcE/YCiYNv6AVIxtvxrysOR6fC4gaLqU7FrqAxczBeQzBRkPAK7LiHY0GuCe4CxNsV PexoNKum1sJ9UTqwyD7Vqy4UBKRD6qNbFPR7Po94G2Iupe+prxlXx5q79HQRx9y73ICa q9Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718035235; x=1718640035; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V2uFsjZY59HKl17I9IjmNWHWtW0Dkg82qvwOhOjzL78=; b=hLxiZOra+MTN4jBYmafGy/zcCOJLoGn9068bEDuqlew27UCR5pN1zpL7vSOo7NZIyU Pdd2ybVo33XZkL02kY4RUSmN470cRMruuuWMjEpNyQJsnG9auqA/s3JGp1tjo5aYYGfk wJeW6nLdVMhhhd1b2+mh+lelP11laTKFQC4hsnwJGbuyQ9hQcfm2Vk840Ho7TS6XIqLH d2YocnlL18iGXRYb9MavCHFa8Htx0E54gtqMjFl8GIg7aH64MJ5Y1pqooKu42KQKPMR7 WESYP4QbV7Ff1o/QUgV0fjl6Me7KD/HC6yHmwGfhXxxzkiTK1GkTAwof2ljKONV72h38 bToQ== X-Forwarded-Encrypted: i=1; AJvYcCV4gUGelUv6CHTh9QVKtHFbP21kLBDd7NALzZSWveC1VV5YneANNCaL8v4f3ucYjhiTarmQtdsDxgtGOE9baB5Zdig3zXLXf2cpjGMwXR55g6ZaYUyr+fDr38BQBbnzRAoqmkmLlat5cSXlBg== X-Gm-Message-State: AOJu0Yz9XmVrhPwCB6S6wqEFA+eZP349wcPiPDxGLGWiN9082JA8zuJo dO1eQsh5uVsd0K+5WVkM+sphM+B4+96SNNHNYNEu2lDGcyauMcEJD+nSZg== X-Received: by 2002:a05:6a20:948d:b0:1b2:b2b:5698 with SMTP id adf61e73a8af0-1b2f9aad7f0mr7679091637.33.1718035234756; Mon, 10 Jun 2024 09:00:34 -0700 (PDT) Received: from carrot.. (i223-217-185-141.s42.a014.ap.plala.or.jp. [223.217.185.141]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6e4532507casm4872411a12.62.2024.06.10.09.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 09:00:33 -0700 (PDT) From: Ryusuke Konishi To: Andrew Morton Cc: linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH -mm 0/2] nilfs2: eliminate the call to inode_attach_wb() Date: Tue, 11 Jun 2024 01:00:27 +0900 Message-Id: <20240610160029.7673-1-konishi.ryusuke@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Andrew, please queue this series for the next cycle. This series eliminates the inode_attach_wb() call from nilfs2, which was introduced as a workaround for a kernel bug but is suspected of layer violation (in fact, it is undesirable since it exposes a reference to the backing device). Removal of the inode_attach_wb() call is done by simply using mark_buffer_dirty() on the backing device's buffers. To use it safely, this series will prepare it in patch 1/2, and perform the replacement itself in patch 2/2. Thanks, Ryusuke Konishi Ryusuke Konishi (2): nilfs2: prepare backing device folios for writing after adding checksums nilfs2: do not call inode_attach_wb() directly fs/nilfs2/segment.c | 89 +++++++++++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 35 deletions(-) -- 2.34.1