Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421957yba; Tue, 16 Apr 2019 10:59:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTDqiCov3quWzEnzA0X4w/w23m5EvD346pyZcZ6d13JA2OYu6IxW0LpheSKRw4I2px0f15 X-Received: by 2002:a63:c45:: with SMTP id 5mr78712852pgm.385.1555437587576; Tue, 16 Apr 2019 10:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437587; cv=none; d=google.com; s=arc-20160816; b=cCVXrXJjx3s4ovvenmdFV/ypUpHwcD18FV0PVKA+/3Bgv+UPv5tXRMGYkvNVuywNvN +ER63WP5gNYRPZ9hO1ifcv3cpSbRqYd23ET7MbsKIq58RinIkOE1pYrmyUWD6+vCtgJr wyFXQ3j3bG516aTNP45WXaISclgsq71XyI3rygq82DiQWpBm0J0Kh84+pLmFcp2ZPUHk lBF3Znu+bdTPX4zOZYTfzGATAWyZxtyEsS4IgK5JDATQ6m0mUVI+AmfB7REoUh5ul2BI Wfm0iWD3gorsTxD4mQc4GA9lnmfmrqUOqhUeMPcqu1qxXqxAAsd6Kt21MrOm/jHo+9kz 8/RQ== 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=DUTvO5QjaEfDzJ0icBq1iuG4imC5m9qd9CBHwfoj8yA=; b=Hms9z4KXFyld0Fu8ExKoe/gPJXHq3l1Y4Ck7ycYqhaChKsaKWGs9S8iOEtRNo42Y8Z 0zbm0qFDNA4mv9Rvpsf1T37gGViXcL9Lf7DR2SWhp1RkrT9aCRQvq6h12lXNlO2JFNX4 mdkoVyYzz+N/NjdhqaENxAoYYV4bnGhla9r3fgdLZbERORFKcy5nehYAJSybFYBI2DWP 4C4CuJFegNgQwV3UYWSV1XUibzMdz2ImfNpu9lrbESU0iUtL3UCFyapAwtc7UsdAEOyc WCQGFBGlMrtxLf35ex349U3LqqAhqfEtQVOwKbeo7MAykmSWy/OAtt18NJFJFn0qWF99 jCgA== 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 j65si12955298plb.159.2019.04.16.10.59.31; Tue, 16 Apr 2019 10:59:47 -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 S1730847AbfDPR6m (ORCPT + 99 others); Tue, 16 Apr 2019 13:58:42 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57578 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730254AbfDPRxp (ORCPT ); Tue, 16 Apr 2019 13:53:45 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH9-0005Wh-QK; Tue, 16 Apr 2019 17:53:43 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 24/62] isofs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:02 +0100 Message-Id: <20190416175340.21068-24-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/isofs/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 488a9e7f8f66..603b052a3c94 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c @@ -72,17 +72,11 @@ static struct inode *isofs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void isofs_i_callback(struct rcu_head *head) +static void isofs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(isofs_inode_cachep, ISOFS_I(inode)); } -static void isofs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, isofs_i_callback); -} - static void init_once(void *foo) { struct iso_inode_info *ei = foo; @@ -122,7 +116,7 @@ static int isofs_remount(struct super_block *sb, int *flags, char *data) static const struct super_operations isofs_sops = { .alloc_inode = isofs_alloc_inode, - .destroy_inode = isofs_destroy_inode, + .free_inode = isofs_free_inode, .put_super = isofs_put_super, .statfs = isofs_statfs, .remount_fs = isofs_remount, -- 2.11.0