Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3417800yba; Tue, 16 Apr 2019 10:54:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJCONdvZ4v3ZCTneTTHxcyZRPvZh/x5XAYTS9BENEdTe7/ZD0SDV2vVxbiuJO6KDqINd39 X-Received: by 2002:a17:902:8a81:: with SMTP id p1mr84593861plo.106.1555437275938; Tue, 16 Apr 2019 10:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437275; cv=none; d=google.com; s=arc-20160816; b=JwfAYH9Jf4oO8HMXiO08UVBPhH4i8Nau1vSZfUXgZXyD+te5CC2pP9raXLhP25FmHS Fly3oXOo/TeQ2ZXq7z+43Hh4OZLX0ipGagqfDQl5J3U0FUBWq+/OpXQZK5KxB7OkgCSE /oa+ryqaLYFteAx0u3snD7+0XbhjKUhx9xFYkSb75hb6qccnbQMV19LCVg3++Aoztr74 vGdNtVjkdmo4P3b95lSeL9JIyYT0piQbKWQEqYxe3p5C/XERyR5gpHtaWyJ8sgCF6qVs bTDKKWInqjdA1DLgbbISQYF4wCcJ1YGgfvkVUtAskd3dC+As+N4PUA+/Q6ODx7a7d+NE pkcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zjp/FIWqV/A+4GlN5T4y3eDs2jfDZBR6ifsoKiJ7sTY=; b=DMMnEP9QD/EvH4MK6FxFFsJ38Fcrk+tiXuMeIOXnmADtQGcUAiraXE12q9yApMiiOA LnwFLuCTrU/qCaKoI2wijd8ajtHPwyMtNNNNHGLt4O+1SalzOU+CPTJ3vRHTuFUS9Dx4 hMB3IISMUXnINmznX6i2TUGVc3FkxC+4LtdMtBkFJybxVdUpIeHelAb5Fh1e9evhFZJE JAc9YpFK6ky+dNbyw2UBHfsBU3aqzIaahbkOKy91pWvWbp1ZtHBk/ZdrOUzdOTghc3Jb MYWGy2kOQnYYdpPtm0MOjwieFbsVP/ETte+5u6eCcsEPtBmIicKIAlFrpY/rSvOG+3k+ iiVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si41398956pls.15.2019.04.16.10.54.19; Tue, 16 Apr 2019 10:54:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730274AbfDPRxp (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:45 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57514 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbfDPRxn (ORCPT ); Tue, 16 Apr 2019 13:53:43 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH7-0005V5-MI; Tue, 16 Apr 2019 17:53:41 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 08/62] affs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:46 +0100 Message-Id: <20190416175340.21068-8-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416175340.21068-1-viro@ZenIV.linux.org.uk> References: <20190416174900.GT2217@ZenIV.linux.org.uk> <20190416175340.21068-1-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- fs/affs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/affs/super.c b/fs/affs/super.c index d1ad11a8a4a5..d58217f0baaa 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c @@ -111,17 +111,11 @@ static struct inode *affs_alloc_inode(struct super_block *sb) return &i->vfs_inode; } -static void affs_i_callback(struct rcu_head *head) +static void affs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(affs_inode_cachep, AFFS_I(inode)); } -static void affs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, affs_i_callback); -} - static void init_once(void *foo) { struct affs_inode_info *ei = (struct affs_inode_info *) foo; @@ -155,7 +149,7 @@ static void destroy_inodecache(void) static const struct super_operations affs_sops = { .alloc_inode = affs_alloc_inode, - .destroy_inode = affs_destroy_inode, + .free_inode = affs_free_inode, .write_inode = affs_write_inode, .evict_inode = affs_evict_inode, .put_super = affs_put_super, -- 2.11.0