Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2253577pxp; Mon, 21 Mar 2022 15:03:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhUvJa0r0xf6DHXKYNn023hrEI7iFkqFy7tVX+SSzp00heXz1wGGq5OD8I4nehtZGWvhad X-Received: by 2002:a65:644e:0:b0:382:800d:153a with SMTP id s14-20020a65644e000000b00382800d153amr5759729pgv.366.1647900235980; Mon, 21 Mar 2022 15:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647900235; cv=none; d=google.com; s=arc-20160816; b=yK7vqjT2v4LpvNgu6DF3S/mET6LBkVHlNmi0nYlpVRgB9NY3EYGNheH2p7BP/6SByH kMRt8sUqs1m+0BytqNNLw+sitb5k9Cqno1ueEfqvfuMY9z6qWt/Q3xRXc/rWVEY3E2P0 g6VHYSMn/3v5DC5+RPBfEXeHvXUNqcBgRf0uznefRPV19+ES5/DdwyKlnfNVUyEZzyrb C9bO9lSPwsoH4aD66YVnSTaaFL5fwmereCZzqJ7PFxPsMDho/bCDK8jFYgjr4yDQXAyQ DCclg5JlbAN/6erKlXHG1XkIwo/aOFEV7MDQf3sVDcmZwBLUyKR/n6ORTpcPweoVIpW5 eKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=aGt0QOXNwCSbtFJRf/ayuNuD4ICQ9tLB6ZQAMSZA3fQ=; b=b2C5cBsg4Ar8HkABIQF6sbaplILAH7HJQ/cYwTRFZmLcujlS56CzoM6VV9jOfKvlXt lqMEodzrLh7hMKxCmsDjFUQqjEi9BX/4aJpWjquROHAy1d6A8s9p/am42hc0br86pjG2 dBEgKyN2pI96owlPjIruTr/LehW+0+nyTQcPgMjzk4xM8FmfvTdr9Zd4NfgfA5ynFCZ8 LrrrJRmTeOhunGpvjPNYnK5No9YyYHzCkHobtoW5TU365EfAY1zJlW2DJtJFQz8tffW+ tbySXqBBXNQkzp0e8DsvNOe+VFDxWdBxqspiyAkPEGQx1zYJVBBcC3p7H+EmOvKI1MI1 XJqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YOIqisPI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u9-20020a6540c9000000b0038205c0f2adsi14590278pgp.671.2022.03.21.15.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YOIqisPI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 763AF35184D; Mon, 21 Mar 2022 14:27:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347675AbiCUM6w (ORCPT + 99 others); Mon, 21 Mar 2022 08:58:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347660AbiCUM6q (ORCPT ); Mon, 21 Mar 2022 08:58:46 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D2916BF96; Mon, 21 Mar 2022 05:57:21 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id kx5-20020a17090b228500b001c6ed9db871so3978445pjb.1; 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=el5dUgReLvZTKaVKzqkQ86Mel3U67UO1wGQur2Rsw3GCed2GSudNBkXH9XPpj1gyTl qJ9WdrUQtoZVQz1Hvqi2yMgWS6YGgJ4jZQC9HfGwSq0ds+1TQ0zOoRfURa4iPhgDuDLw +p6hcNmThppxVo4uhCAcN8dwDP7C+JzqHnfvLziV5nApTv+OUaCV2QoPzT5RUgkcW25v QyHuR0fMHXsvF7IdsT3AZjQ183oGs5YxGzXox0MIxcwuvrU/YoTDBjbEojZJLJXBvWex zhriini2TbRQsxf8d377ByM0+d8YJbgaYVT1D8B+ctOlaGqHYFkNtq0U0EBE5RvyD/Tb 9Spw== X-Gm-Message-State: AOAM532+DTqAfk7v1mDyvY7LtAdYcS2yGuCHE28wi2i2IDFEjQLP5UxN yms9pj9N2gjyaHBxDetR9A8= 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-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 1.8.3.1