Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3419783yba; Tue, 16 Apr 2019 10:57:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyon8cOqi9GgRCCHa37/1Vv89pZ6UDaD3286zCEotEGRo2oIFP4ZR5vhx9NoAp4uWpPKCKi X-Received: by 2002:a63:6849:: with SMTP id d70mr77492704pgc.21.1555437429189; Tue, 16 Apr 2019 10:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437429; cv=none; d=google.com; s=arc-20160816; b=DxkL8zRyNKiRXwlFNAr9pu9yCQ7zXRHVa+ImKWHmA4UMsjKw0piJVFyAJuV/JowxBB FFTDSyVZIBTOLhX+3AKNI2iayJvkirVkPsmgGqQJHw0RCJ5USarjnuvfcZc/S7gHqNeZ Bi+irHb9DDxCruASOxLJ8ZZ/bJZnkU9NWwMgf2aScU1+mNC3szKqEjD1vc3t443jtGcJ rB7DCOdLutSwqPOSl0WzdF+TopC38fwJHuxTf/yyhPjtXdkvrPqQsSXlInFRrfN7wFGq caUL7mCIBIROGxmBeeENrUb6veEq9Ty8fsOntS9vRMqHbNc/PIE2Fjrc/kD464WYqdfH wrKg== 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=Fnvkh65UpmvCs8kA+xwy7VPrswAPJmH28Su+oDzfdhk=; b=Azf4Vt3dVVNJBHpKgr/FQtdrG2huFbdNXET38DV9yNeUvJ8bsvp2/L2+yGHk3I1kXW tZcz03KDat1fATFcXqqNt1Zl6qLYChvQGTswWaDpf1uO+bsEk6ZXlXubZiFljCy6MbzG vLvvu7goKyJMBU78QEOrWdyte7lJDlEiX9zo6UQ/w9fHg1Leqb2IZ8USAkz+D+7QCB9o anJ6Q4wQrPDVc312iuxh/2O64A9nkkf6egs63XazME0HQZt38570RrWHQ0jt3xyZT2u3 u8Vv4Pqh72VemdzQELXAvblPa+RWnBDFLJMekcUlilF0HdNNpkCJrg+M4CzLAuIKBaBR a6Jg== 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 r17si28907728pgh.311.2019.04.16.10.56.52; Tue, 16 Apr 2019 10:57:09 -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 S1730441AbfDPRx4 (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:56 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57562 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730237AbfDPRxp (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-3a; 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 20/62] hfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:58 +0100 Message-Id: <20190416175340.21068-20-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/hfs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 173876782f73..c33324686d89 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c @@ -167,20 +167,14 @@ static struct inode *hfs_alloc_inode(struct super_block *sb) return i ? &i->vfs_inode : NULL; } -static void hfs_i_callback(struct rcu_head *head) +static void hfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(hfs_inode_cachep, HFS_I(inode)); } -static void hfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, hfs_i_callback); -} - static const struct super_operations hfs_super_operations = { .alloc_inode = hfs_alloc_inode, - .destroy_inode = hfs_destroy_inode, + .free_inode = hfs_free_inode, .write_inode = hfs_write_inode, .evict_inode = hfs_evict_inode, .put_super = hfs_put_super, -- 2.11.0