Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422449yba; Tue, 16 Apr 2019 11:00:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyCCQXRQe0ftMTn7S1LWhTbir9lXX+O/utdYL9bwQ6bcKHvhDRiMKIWbWV1TsB1t4GteZR X-Received: by 2002:a17:902:b48c:: with SMTP id y12mr81575643plr.280.1555437619389; Tue, 16 Apr 2019 11:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437619; cv=none; d=google.com; s=arc-20160816; b=tTtGwvqw3nP6axJ9Hd7zfRFLTKrbYAtuytwCeDv2gO1u4FFHEfszvM8fJaaemSxlkj +1EOA/ZOPSlz/t/7Y5vEfS20RFyjneE779mOjsp1LsljHLvzAys9x8w7KY0D8NQ8CJTV yztPCPJQIgd4YkZkyClOXlN4U/KIYRIeF+DR0e8gzG8H82L/ez1188LdSyGs39wtwSs0 R6gZOGsOUHA42jWwe4dOcl0K5FZQCZUK8Viljmf8sLO0HOfm+iCZBCbaZlwpYUq1Oujh UCbVe/BSwc7WZsjGLo7OaVKZloyzf0N5BEctjVsq4d3DQztf6aMP4Z4SKG8Ett7UJkdK s+rg== 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=aYCz4RxLORL28pvLRr7MMdKFLXgX8BhyFpkyv83yxoM=; b=r2VPPygw4z02fZczvgrl41y/mo0Hnyfkhp8S8yqDs3qkiC3tNV3uNaoqHFGmdNou7x IdhPxNAuOusiF+I7mFBKL0IR+bJd4zuq11Myf5Kzz3FW5uJWb+qT97EKAGwT1P8vCvYq 37AH39gFdBaACCT773r3rGIfPI1jvg7iVrGpdQLcN0SDjWpBKDD5s/vdsBVBBbpodpcC FFSfkT/2OBLlKU6vvhyRMfSKHNT+NxpmL5cAjqbKFwpMPz0b56gZvzYi0PR47Z2iN5Cw RMeBOq+a9BXt0m3bevZcLWWDCBC4XjWZL5cR3FE3XVi2mGLCoU+bmNEYF+0wZZX3Dio6 PeUw== 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 r10si48503248pgh.395.2019.04.16.11.00.02; Tue, 16 Apr 2019 11:00:19 -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 S1730621AbfDPR7P (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:15 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57534 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730228AbfDPRxo (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-0005Va-DY; 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 13/62] debugfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:51 +0100 Message-Id: <20190416175340.21068-13-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/debugfs/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index f25daa207421..414fa4752047 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -163,24 +163,18 @@ static int debugfs_show_options(struct seq_file *m, struct dentry *root) return 0; } -static void debugfs_i_callback(struct rcu_head *head) +static void debugfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); if (S_ISLNK(inode->i_mode)) kfree(inode->i_link); free_inode_nonrcu(inode); } -static void debugfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, debugfs_i_callback); -} - static const struct super_operations debugfs_super_operations = { .statfs = simple_statfs, .remount_fs = debugfs_remount, .show_options = debugfs_show_options, - .destroy_inode = debugfs_destroy_inode, + .free_inode = debugfs_free_inode, }; static void debugfs_release_dentry(struct dentry *dentry) -- 2.11.0