Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422817yba; Tue, 16 Apr 2019 11:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyopUDKDAEs2AXufdZxX8o7x9xn63IRWgD9ReOUqxghmCsHrP8ZLq0pK8bEpFC79DA5AsJX X-Received: by 2002:a63:6a43:: with SMTP id f64mr45272955pgc.366.1555437642760; Tue, 16 Apr 2019 11:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437642; cv=none; d=google.com; s=arc-20160816; b=0E2cAVhgjqQoLamxxaBBQMtcwQ6P/heIoJ0iC6KXAh07/dRZgFySoR3QnCPqvblCP5 htPMOO3m58Axmca3PqQorNDyrTz2JnMT+GiCR3pAgvsew5hFvO2a8NYcB53tml6zGwfc 7kiomC9j/gQoPJlyql1/Rs4Q7XXmuZETK+pi7pOVr5A6kr7oKirTZ3KMAteeoxR4/Oef reoaJDtkGbmLnCyUdLVph/5R1XRTNN4k6XiG79hFRV13BjRud2ZOYahq1ICGEwNv5fhM 9/lCBKYCFIp89vfjvAebj7xT8fMr2YmhXpVDbWgbWt9bGR+PgRkpo9LB5m8X3nH4fRvR 7/vw== 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=6dd71Rxh9xOT7uVbCS0GdGLFWEVCV0fP2dyAI50/8zA=; b=H8NFWOG1Zt0NUubz7x/PZ0gKSoJQuQj3xn9FGBTzxxm69cBg9W5030H1iflu6zaWtt O+6m5zz54zu4knwGf7zGcGmpmy5kYpCYOhOePteE+egNBrVSc30xZbHQp8FR5uwd26C7 /nf3k26qVzx6tEftrjK/AP0vPlgG/23YNnKI553Ph/kGB2qNSFW6QXfywAtssRuEb7bW LgJ3kuiKN+pbcI9Cm+xxfyroTFhZGtWjOWa9auMRXvUUJl58CFUH7l/2hF+0koHemUWp Fhd4O9CsMTIreRtIEMXLn0CLEBbn531dRRjJrFTp1N6OFrtfZKhqx1IN6VNcLKFI1S97 icTQ== 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 d37si26067644pla.97.2019.04.16.11.00.26; Tue, 16 Apr 2019 11:00:42 -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 S1730889AbfDPR7m (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:42 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57546 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbfDPRxo (ORCPT ); Tue, 16 Apr 2019 13:53:44 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH8-0005Vs-Km; Tue, 16 Apr 2019 17:53:42 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 16/62] f2fs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:54 +0100 Message-Id: <20190416175340.21068-16-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/f2fs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index f2aaa2cc6b3e..9924eac76254 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1000,17 +1000,11 @@ static void f2fs_dirty_inode(struct inode *inode, int flags) f2fs_inode_dirtied(inode, false); } -static void f2fs_i_callback(struct rcu_head *head) +static void f2fs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(f2fs_inode_cachep, F2FS_I(inode)); } -static void f2fs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, f2fs_i_callback); -} - static void destroy_percpu_info(struct f2fs_sb_info *sbi) { percpu_counter_destroy(&sbi->alloc_valid_block_count); @@ -2166,8 +2160,8 @@ void f2fs_quota_off_umount(struct super_block *sb) static const struct super_operations f2fs_sops = { .alloc_inode = f2fs_alloc_inode, + .free_inode = f2fs_free_inode, .drop_inode = f2fs_drop_inode, - .destroy_inode = f2fs_destroy_inode, .write_inode = f2fs_write_inode, .dirty_inode = f2fs_dirty_inode, .show_options = f2fs_show_options, -- 2.11.0