Message ID | 20230223024412.3522465-2-mcgrof@kernel.org (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 07C47C64EC7 for <linux-mm@archiver.kernel.org>; Thu, 23 Feb 2023 02:44:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E73406B007E; Wed, 22 Feb 2023 21:44:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E26CC6B007D; Wed, 22 Feb 2023 21:44:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C54796B0083; Wed, 22 Feb 2023 21:44:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AA9096B007E for <linux-mm@kvack.org>; Wed, 22 Feb 2023 21:44:22 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8DD291A0AD6 for <linux-mm@kvack.org>; Thu, 23 Feb 2023 02:44:22 +0000 (UTC) X-FDA: 80497012764.04.420AA6D Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf14.hostedemail.com (Postfix) with ESMTP id 6DC7810000B for <linux-mm@kvack.org>; Thu, 23 Feb 2023 02:44:19 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=WPU7CMVf; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf14.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677120260; h=from:from:sender: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=krGz8JNPEfUKWYOBIr5M4Mxvx6mftCSbjb3cTtYDfCE=; b=XTEzuejpaSfn6rYTEq9xHjtnI5kIT6eLS3AbBjM1lLYRn3yufiAOLoNKSH/maHYyni4RsI LSw8WxwUhsIkdnR1tVTLW+qiqZlBvNU6srFcvDRcy12xl1NxAWfE8eqSJRhcJF34L3RHiU EUfaxmQw2/nGm5ZJ0WwvuJ3ykcXWZRo= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=WPU7CMVf; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf14.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677120260; a=rsa-sha256; cv=none; b=kxPLYjxu18YI1KBksu04dL+kiizDPlh/UOnTOZ2B9RjCa2U7i6mAO6vnAl6VJgndMceQh+ H9vvqCqllWs1mvD6sif+efwSb2GMiFdWZFJLUb0oFY6r3bSWR5WIGfWThwyw5NNhtqnPNu YBFaGj3puk8bDNpsH4txKtiPz0p4e00= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=krGz8JNPEfUKWYOBIr5M4Mxvx6mftCSbjb3cTtYDfCE=; b=WPU7CMVf2DgW2/TSJHS9J0wBbm 7uuRWz2+zFq+EasHiqr1iOkkS9NL5LWxlcCD3ssYHfVxIZqQ+gtxv8xIAdydY8zeX2XXxPd32DMrA xH98Va7Idt0dDo+kqQgqTYTrqEJ2RAZYXxd257F82UMExgv3lmhVcPSPPsWAeKfauFFTA3TPeq+Di Uq9O1gx1dLSp7+uLiQvB2zJWZIz0xjOpuHO5MScdavofEmCokIJtKYMbj90wP8/izrEAVUewGnRZo UUKkZ2ofyPO4lPHlNe3XteK6m8dKpiwygeke619PsuduCvAAoLvnnP9ZRzHoaSHqgmML7d+uGrreJ IZ2d8kFg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV1ah-00EmN8-6C; Thu, 23 Feb 2023 02:44:15 +0000 From: Luis Chamberlain <mcgrof@kernel.org> To: hughd@google.com, akpm@linux-foundation.org, willy@infradead.org Cc: linux-mm@kvack.org, p.raghav@samsung.com, dave@stgolabs.net, a.manzanares@samsung.com, yosryahmed@google.com, mcgrof@kernel.org, linux-kernel@vger.kernel.org Subject: [RFC v2 1/5] shmem: remove check for folio lock on writepage() Date: Wed, 22 Feb 2023 18:44:08 -0800 Message-Id: <20230223024412.3522465-2-mcgrof@kernel.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230223024412.3522465-1-mcgrof@kernel.org> References: <20230223024412.3522465-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6DC7810000B X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 3389kaxzotfsn3qdyepcxsf3r1q5szd4 X-HE-Tag: 1677120259-484463 X-HE-Meta: U2FsdGVkX19Xz+TJYfyJXGxGbhihrmV8iLHo6Dya3WgNX1Tc5cHXLPjqR9XC8uXHH8mVQHPfgtwVyKdw5e8OFXy2dl4KyMHQHT3gcXPr8c6Ul9z2jmztL/A9XBX0Sc4AmxEZ/NoYJcMuJ9WTEFv015B5laaQFJ6/hyPkTLWF9OzdHFaVY9YI//Z+3sHkjwDj2PD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0GQyMUYSqaomftbOLvGAIihJTAxzGWef3XqS7anlmGjwTLNbqBz/0jhaxCIj5m86DeVrFmtBVPvmfZK/3QPvTbNzHiDzVIeMua6jfCZL/kUTE+/iP4u0a80h4gejDZuBhrXWS9OXQ2Qa9DnTnsqyseCo2sfKS/P3CeJn3PLFO+nDJTCEs6QPIomidiyLDeDfLQEt7DW73y 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> |
Series |
tmpfs: add the option to disable swap
|
expand
|
diff --git a/mm/shmem.c b/mm/shmem.c index 28f3c699c8ce..b3ad619328bf 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -1351,7 +1351,6 @@ static int shmem_writepage(struct page *page, struct writeback_control *wbc) folio_clear_dirty(folio); } - BUG_ON(!folio_test_locked(folio)); mapping = folio->mapping; index = folio->index; inode = mapping->host;
Matthew notes we should not need to check the folio lock on the writepage() callback so remove it. This sanity check has been lingering since linux-history days. We remove this as we tidy up the writepage() callback to make things a bit clearer. Suggested-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> --- mm/shmem.c | 1 - 1 file changed, 1 deletion(-)