From patchwork Mon Mar 21 12:57:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryusuke Konishi X-Patchwork-Id: 12787210 Return-Path: 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 7D0B7C433F5 for ; Mon, 21 Mar 2022 12:57:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0E4036B0075; Mon, 21 Mar 2022 08:57:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 043E26B0078; Mon, 21 Mar 2022 08:57:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFFA76B007B; Mon, 21 Mar 2022 08:57:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0253.hostedemail.com [216.40.44.253]) by kanga.kvack.org (Postfix) with ESMTP id CEC276B0075 for ; Mon, 21 Mar 2022 08:57:22 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7D018A45C3 for ; Mon, 21 Mar 2022 12:57:22 +0000 (UTC) X-FDA: 79268394324.20.F2E679E Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by imf20.hostedemail.com (Postfix) with ESMTP id 0C0FE1C0023 for ; Mon, 21 Mar 2022 12:57:21 +0000 (UTC) Received: by mail-pj1-f46.google.com with SMTP id gb19so12973753pjb.1 for ; Mon, 21 Mar 2022 05:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aGt0QOXNwCSbtFJRf/ayuNuD4ICQ9tLB6ZQAMSZA3fQ=; b=YOIqisPIdsOV4AXIAJlVXH7XAbldaJ4R2x9i2Or0eaf2szg9q8357OFBJJtaEd+hVI CejP+TuHCj+pB2qiM+u6XokNVAVvwj/aQJsEgY0C2JvhW+n3jpxhu6j5t7JF6QrUoyeE UPjykla2QOOjeDrX1G72k3NfzP5DUMENBpKD891lrsfg3H6mKeQvYKiCNLtLxmkLtfk/ 77LJJ/H+NnaZ0z/J2qj3MruVZ7PmWcObIFkSj+oSsJYzQvI6OfdcYjnQMN+8THfObjrv oA/yYttT+VirTpWtYXF3NqFKIW6k0sFjkHBJjVRSnsRUuddzfbTRYDJs5Ih+pVKry/tc C6+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aGt0QOXNwCSbtFJRf/ayuNuD4ICQ9tLB6ZQAMSZA3fQ=; b=ImaiUMS7ebWt5ZyWU+PIK4UAv6z6LxftmLU3ZGqVhoN3LK0uwK2dasae3nLOQHxWTv 1ZvFbbKJ5exH53bMSmixbkSzVv/LvsOhJKxrqyO1oXPyHAq+TXdz6tcsc4wJvGPZYbWw 3WNMdJU59nGnPZSEF5zbtmca/kLnnxGOxZzCzz6fFswTP0E8mpY6m6Hz57K/GrA/3dB+ QnjsHeJhOCu3nmtcIb4pM8H8Imy02OJYBcnFV2LUiaBdoqiJzp87AVJd2a5WmyjBMj9i mCwb7rsU1VuHCdMwC+VdbXCPJ+BhJ5j0vstuKifcpCcY5uW5l8tM8+ZUuVpQpdV5j8eg Cy+A== X-Gm-Message-State: AOAM533eEd8sgGK3+Pz/dJngVtt5ky98KHThFXrP7Iv/DgTUYHwl1TbF vrF3rbozLDFs5GUVMPEBAdc= X-Google-Smtp-Source: ABdhPJw+3d6nplioPzwdiaIc4hNRzAJmYdwwJ7vOcAz+jBjj0cPJ/YYPN9PLsUi3PtFs+z77IIq2Kw== X-Received: by 2002:a17:90a:d154:b0:1c6:64a5:a413 with SMTP id t20-20020a17090ad15400b001c664a5a413mr28068457pjw.6.1647867440860; Mon, 21 Mar 2022 05:57:20 -0700 (PDT) Received: from carrot.localdomain (i114-180-38-233.s42.a014.ap.plala.or.jp. [114.180.38.233]) by smtp.gmail.com with ESMTPSA id gb5-20020a17090b060500b001c6d46f7e75sm8009046pjb.30.2022.03.21.05.57.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Mar 2022 05:57:19 -0700 (PDT) From: Ryusuke Konishi To: Andrew Morton Cc: linux-nilfs , Matthew Wilcox , David Hildenbrand , LKML , "linux-mm@kvack.org" Subject: [PATCH 3/3] nilfs2: get rid of nilfs_mapping_init() Date: Mon, 21 Mar 2022 21:57:07 +0900 Message-Id: <1647867427-30498-4-git-send-email-konishi.ryusuke@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1647867427-30498-1-git-send-email-konishi.ryusuke@gmail.com> References: <1647867427-30498-1-git-send-email-konishi.ryusuke@gmail.com> X-Stat-Signature: inejyehnu9jochd57sb47czb6yu9h9up Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YOIqisPI; spf=pass (imf20.hostedemail.com: domain of konishi.ryusuke@gmail.com designates 209.85.216.46 as permitted sender) smtp.mailfrom=konishi.ryusuke@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0C0FE1C0023 X-HE-Tag: 1647867441-443017 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: After applying the lockdep warning fixes, nilfs_mapping_init() is no longer used, so delete it. Signed-off-by: Ryusuke Konishi --- fs/nilfs2/page.c | 9 --------- fs/nilfs2/page.h | 1 - 2 files changed, 10 deletions(-) diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c index 45e079295008..a8e88cc38e16 100644 --- a/fs/nilfs2/page.c +++ b/fs/nilfs2/page.c @@ -436,15 +436,6 @@ unsigned int nilfs_page_count_clean_buffers(struct page *page, return nc; } -void nilfs_mapping_init(struct address_space *mapping, struct inode *inode) -{ - mapping->host = inode; - mapping->flags = 0; - mapping_set_gfp_mask(mapping, GFP_NOFS); - mapping->private_data = NULL; - mapping->a_ops = &empty_aops; -} - /* * NILFS2 needs clear_page_dirty() in the following two cases: * diff --git a/fs/nilfs2/page.h b/fs/nilfs2/page.h index 569263b23c0c..21ddcdd4d63e 100644 --- a/fs/nilfs2/page.h +++ b/fs/nilfs2/page.h @@ -43,7 +43,6 @@ struct buffer_head *nilfs_grab_buffer(struct inode *, struct address_space *, void nilfs_copy_back_pages(struct address_space *, struct address_space *); void nilfs_clear_dirty_page(struct page *, bool); void nilfs_clear_dirty_pages(struct address_space *, bool); -void nilfs_mapping_init(struct address_space *mapping, struct inode *inode); unsigned int nilfs_page_count_clean_buffers(struct page *, unsigned int, unsigned int); unsigned long nilfs_find_uncommitted_extent(struct inode *inode,