From patchwork Fri Jul 16 06:39:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 12381503 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99D4CC636CA for ; Fri, 16 Jul 2021 06:39:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 322BF60C40 for ; Fri, 16 Jul 2021 06:39:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 322BF60C40 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 903E08D00F4; Fri, 16 Jul 2021 02:39:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B3CB8D00EC; Fri, 16 Jul 2021 02:39:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77B728D00F4; Fri, 16 Jul 2021 02:39:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0168.hostedemail.com [216.40.44.168]) by kanga.kvack.org (Postfix) with ESMTP id 4EC948D00EC for ; Fri, 16 Jul 2021 02:39:42 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 20A06274B2 for ; Fri, 16 Jul 2021 06:39:41 +0000 (UTC) X-FDA: 78367500162.22.29426EA Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf11.hostedemail.com (Postfix) with ESMTP id B8C2EF0000B4 for ; Fri, 16 Jul 2021 06:39:40 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 526A261289; Fri, 16 Jul 2021 06:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626417579; bh=11TCU5jro/rETFD7x4RyMNK3OjzGaz7mWqbuZLRasKs=; h=From:To:Cc:Subject:Date:From; b=HaCt9LZZ8ebNKoCHskt2hgHInznNqGEnZZkZO6GBGO0CFiKBYuBmcSPodNuXWBnD8 3LLW4WyOdKfKPB4x5cIsMyCnVLslwy0Rt96XvTOkacnKosZmpzYi5U/qfZqMH0Qi+9 GfX55SxrphZHQPM6+D8tt0SEkqLVlbR3FlvfvO/eEgpodXDPk8NKHYsfQ1As+FNRKO 1UF9+i0DIiX/eggGviiSYs2XjR7CyoiCc4OGJj/A/StGcK3LFsol6QIiW5MWECQ+Hk 5IKhRugNjeS/AHCnRfjU0nyLKWnZbldUDzlPfe8EUQEbgFPLVPxTXI05CVQGs/qQ9G B6pCOPEo5JgfA== From: Mike Rapoport To: Andrew Morton Cc: Mike Rapoport , Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/secretmem: wire up ->set_page_dirty Date: Fri, 16 Jul 2021 09:39:33 +0300 Message-Id: <20210716063933.31633-1-rppt@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: B8C2EF0000B4 X-Stat-Signature: 89fcwumeh8cdkfekmkwy4d63hgkje874 Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=HaCt9LZZ; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of rppt@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=rppt@kernel.org X-HE-Tag: 1626417580-315072 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Mike Rapoport Make secretmem up to date with the changes done in commit 0af573780b0b ("mm: require ->set_page_dirty to be explicitly wired up") so that unconditional call to this method won't cause crashes. Fixes: 0af573780b0b ("mm: require ->set_page_dirty to be explicitly wired up") Signed-off-by: Mike Rapoport Reviewed-by: David Hildenbrand --- mm/secretmem.c | 1 + 1 file changed, 1 insertion(+) base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3 diff --git a/mm/secretmem.c b/mm/secretmem.c index f77d25467a14..030f02ddc7c1 100644 --- a/mm/secretmem.c +++ b/mm/secretmem.c @@ -152,6 +152,7 @@ static void secretmem_freepage(struct page *page) } const struct address_space_operations secretmem_aops = { + .set_page_dirty = __set_page_dirty_no_writeback, .freepage = secretmem_freepage, .migratepage = secretmem_migratepage, .isolate_page = secretmem_isolate_page,