Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421126yba; Tue, 16 Apr 2019 10:58:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIpuViDWoxlsqizXbLgueOluaTC3Cnptbc3sXRjPwgUzaA9rR1CM+eOrq9fuDe/3yVzwoP X-Received: by 2002:a17:902:1124:: with SMTP id d33mr60072635pla.268.1555437528328; Tue, 16 Apr 2019 10:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437528; cv=none; d=google.com; s=arc-20160816; b=ietwAR1dNDT4RCuWMyWRWCOGjH3s/pLvZ30f5yXA+k2MHkwKIqopmvsojq2bv7XMFA jnHatTX07NJz+J/bLnls2WldcJylShvFssM+LQBpFgW7XYwtbvp/lbYoPiEv5BZnQJ2h cdj4vG2ICcn6rU+1LayyjFRjwBueibIyOd/uINLJ+aAMepTF3B6f4mQ0OS58W/ckNYg8 M1jVhyddoi5gFQ5Q6vSxUGPABVA3rbCYBBhqmWHCnrYYfTKuo6pbBvYp1uwzFV/cjMvW s0Pm21bYrftxqM1mmcUHUzsXLXxKXe1rsHYEWtH0fMHtd4z8+DXquGAMUzcghNnGfFR8 j7KA== 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=6JW2PAEBed7kHis5gIYr7JJfHn9hFVB+FYAYO3uk+F0=; b=eICvu2s3i1NCiXXzeMCyEYE0UL9goDRJkpw6tRNh6DUrGqCimN10m4B+1uLWy2zrO6 JQZLeHDSlH6htENsXptxmImK9zadOi8qQib8YnTvcvu7p5jQCag+ZQ6vvXSWIxGTvbsa HQZfsR0CrLcab+fXePvERgFcRUjUIKWh2NLaz23Y9KMH1lFiWrZbS76LqGJ/+D4vAZSm rA5kjXIi+dPr78LoIamUEPbaHcu3RANyg50UUP5E6qG/LScUEV0FjWwSTyZSfwyOSZW+ 5/Vsf98Xa4rcPzJ+IDuCtuOtiGJvut4TORIUl1kqUygwfJ5WZKufJ0UOWoAX8BDjiHjK Kkiw== 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 91si49416072ple.299.2019.04.16.10.58.32; Tue, 16 Apr 2019 10:58:48 -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 S1730525AbfDPR5N (ORCPT + 99 others); Tue, 16 Apr 2019 13:57:13 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57624 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730286AbfDPRxr (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 1hGSHB-0005Y3-Dl; Tue, 16 Apr 2019 17:53:45 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 36/62] romfs: convert to ->free_inode() Date: Tue, 16 Apr 2019 18:53:14 +0100 Message-Id: <20190416175340.21068-36-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/romfs/super.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/romfs/super.c b/fs/romfs/super.c index 6ccb51993a76..7d580f7c3f1d 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c @@ -381,18 +381,11 @@ static struct inode *romfs_alloc_inode(struct super_block *sb) /* * return a spent inode to the slab cache */ -static void romfs_i_callback(struct rcu_head *head) +static void romfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); - kmem_cache_free(romfs_inode_cachep, ROMFS_I(inode)); } -static void romfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, romfs_i_callback); -} - /* * get filesystem statistics */ @@ -439,7 +432,7 @@ static int romfs_remount(struct super_block *sb, int *flags, char *data) static const struct super_operations romfs_super_ops = { .alloc_inode = romfs_alloc_inode, - .destroy_inode = romfs_destroy_inode, + .free_inode = romfs_free_inode, .statfs = romfs_statfs, .remount_fs = romfs_remount, }; -- 2.11.0