Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3417827yba; Tue, 16 Apr 2019 10:54:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzV/2TSyx4BaJ0WosDA14EPxxyfJRVTKhmuKsg3c7bFFEEojb1mMZv3OZrmdMPAF3hgmQSv X-Received: by 2002:aa7:8719:: with SMTP id b25mr83829289pfo.90.1555437277945; Tue, 16 Apr 2019 10:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437277; cv=none; d=google.com; s=arc-20160816; b=wrUh3BcwyQeZmBQSdPKYxgSH4yjJuqg+cHSD3x+p4/5c1X+/N7qlAeNil1baVWxYzJ E2f22jW+VpZ11j/0BpI2pzzKkMloWsSsLm16wB9HiIZW3npnr577GmP2Qb34Sc0w8IiM xK2TwkRyaoQzDdhwlr5xzKjeD1ZXZU6GD5uFOqwtrE4tnUuegbCLhYuZ1usDJCNGpTmP Zt5wUkMAxqnGDVjJvjMDDowS6plZTH6ml3Sc4j9RUkFKJRBPs4s/Eqt46kGswtePV6a9 rmrOMijv92NJC9G3Y+yGiFBGoaOxITQDOZxnTR5naRA78w5DNC55maM8sxKq+/7G9X9D i1fw== 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=IrE6S9ZADQgzD7f5R4+eeudcBRUL6FuQKKryhRzl/MY=; b=c5hZ/r857q9AMx/FWYSi4AshcqrXILRytObnOqHWomkNN0zEZt6hcmD5eat8bCsKd9 3vzqJyWNUEUB/7n7NtVOeUAjU4Ob5QeP5EvD0/lw08RcPKTSk/JeEl0CPlQl9lqVe0jn BczNbwdNUFnN5B5uUrCPzagKDu+krAanhNP6n3ZEXulOYmRzRwtVtpFfYD1yclMOFT8B ECcpRYCk0Mn9GbhHNyiHawwYyPc0SLXOHGjNmKpWrh1L6rZDos/Hd57kSC0fQDlKP6zA uGgDb7Mvo8dWr3qxg+VxmSDedzje5339FKFJsR9gmGs4XYYoVhLloaFZlM1lNBy59ib4 OwAA== 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 c7si37460971plo.121.2019.04.16.10.54.22; Tue, 16 Apr 2019 10:54:37 -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 S1730322AbfDPRxr (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:47 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57510 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728468AbfDPRxn (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-0005Uz-Hr; 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 07/62] adfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:45 +0100 Message-Id: <20190416175340.21068-7-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/adfs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/adfs/super.c b/fs/adfs/super.c index 7e099a7a4eb1..2a83655c408f 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c @@ -248,17 +248,11 @@ static struct inode *adfs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void adfs_i_callback(struct rcu_head *head) +static void adfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(adfs_inode_cachep, ADFS_I(inode)); } -static void adfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, adfs_i_callback); -} - static void init_once(void *foo) { struct adfs_inode_info *ei = (struct adfs_inode_info *) foo; @@ -290,7 +284,7 @@ static void destroy_inodecache(void) static const struct super_operations adfs_sops = { .alloc_inode = adfs_alloc_inode, - .destroy_inode = adfs_destroy_inode, + .free_inode = adfs_free_inode, .drop_inode = generic_delete_inode, .write_inode = adfs_write_inode, .put_super = adfs_put_super, -- 2.11.0