Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3420869yba; Tue, 16 Apr 2019 10:58:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0QRZj+q07ry6FAzEmRhd+MojLRMRTJ4Plx/hmoVDH4tyy+OUNjCS7JEe6M6r/umOvO+2N X-Received: by 2002:a17:902:8d83:: with SMTP id v3mr82315631plo.283.1555437505988; Tue, 16 Apr 2019 10:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437505; cv=none; d=google.com; s=arc-20160816; b=uvvZBGksvFFdXhNWDQM1P0QaiaD0q2geQDsebKnb/igKwT7HV5cS6V6oBHy4du//Eb 8bAv4DHAMKWnuzX4b4YGjbruSJqG4Y1bvcCcLbpPEVE9aWGE3ge9nXmHOmngPLSHWlIX 6xufe44xHO8JlLD2qgu2ciugG+SsMYwNfe/TyRKk2jeFXclSdzFvJuuB6S5YbT6YNyqP v87MxStQXlLmX/V8pec9Q0rFCNRGD2d3/tZSywse5+FneYdamoqJ8NVF0fymMOUoUqlo FqAFQh4SKXfBt5jQD6KOR8re8E+R8m7LSAMEoAbASw9CzewLYkodr5KqISPLzgrkl/Bf Sc2A== 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=via25fiLiBb/T0bXpAubKaMgWkqGyu2S7rJyJcTbblI=; b=OqEIrtTyks8YJDl7hfXyLUzZSFgJmFKxacdlaOwSNmdJtyiHzv9i1d5VOSvr/8tZlI hwR9PJOntrJC4on3RvpipfJeSEErIr0B4VfLTOy/Z2upx65ccaR97c9IPYJnh5sQHivr Yn22PtWQTgPcGs3ev7w0KNhkkl1/H3OPgitzTsR4OSckFXp//wGo3qBjctgPYgj/53+O kTSZfJDsFZaVuH9OS6G6X5raCVCh4YajnDK1A5zXb5vYP8Z/StBNJ7TJfVfQ7aI1jNj1 Xsxnt9LgivXoMk9OYx0wDMvh77vlGNPFBq8j1F0TQJVXnDDDWYj35HYwNq6sKWntA+Ea Zw3g== 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 p15si51379505pli.414.2019.04.16.10.58.09; Tue, 16 Apr 2019 10:58:25 -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 S1730391AbfDPR4p (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:45 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57642 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730296AbfDPRxr (ORCPT ); Tue, 16 Apr 2019 13:53:47 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHC-0005YS-1B; Tue, 16 Apr 2019 17:53:46 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 40/62] sysv: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:18 +0100 Message-Id: <20190416175340.21068-40-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/sysv/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index 273736f41be3..02b1d9d0c182 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c @@ -313,17 +313,11 @@ static struct inode *sysv_alloc_inode(struct super_block *sb) return &si->vfs_inode; } -static void sysv_i_callback(struct rcu_head *head) +static void sysv_free_in_core_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(sysv_inode_cachep, SYSV_I(inode)); } -static void sysv_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, sysv_i_callback); -} - static void init_once(void *p) { struct sysv_inode_info *si = (struct sysv_inode_info *)p; @@ -333,7 +327,7 @@ static void init_once(void *p) const struct super_operations sysv_sops = { .alloc_inode = sysv_alloc_inode, - .destroy_inode = sysv_destroy_inode, + .free_inode = sysv_free_in_core_inode, .write_inode = sysv_write_inode, .evict_inode = sysv_evict_inode, .put_super = sysv_put_super, -- 2.11.0