Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3418465yba; Tue, 16 Apr 2019 10:55:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzoCgMSf+2q/NIJ2YSKCXAnVzU03S7ClFvkm8wkRW2S5KLR/uCto3Xc6Kl+ZQQsNyyVKeD X-Received: by 2002:a17:902:ec0c:: with SMTP id cy12mr61894747plb.291.1555437329677; Tue, 16 Apr 2019 10:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437329; cv=none; d=google.com; s=arc-20160816; b=tZ/6wSXZqPix4v8ki4Ufx9vUcEEv1b9cpsQWY7MjvOK53Qr9CLO6DtBxwRyVUwScQO zzLsD3kkIJ1Q7AKGvR4ncIcreJ3O3tqkrq/z30c9LNsQ7iY4jO3S7W7P9i4L0GlsJdGG yFfczHCOV5izV94ICwv47IqR3CG2P2Kv35QmyM0AEPUiTlGJTQFxwW4TT5Yr3JJloIH0 WbYM4jYwsxZlyb5heLkNDy0OoiyXAHpYPYJlArAz45Gmpe3obBpbJ0RyBXBfTle2tHJd IY1BdUNxlLrr2QEhR/GMnOJsqV+7nB7QAcXolGvJs8b2AHhCg8suco7nbNkzFQmFluJn SSWA== 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=iRbgvAWvIZ1Nu4ZEk+z5HGvewUDP9fPZIYVp40IZtks=; b=mfzmVOYXuLkVRzDtYyiA62PWre06Gado1gHIQIIjEquDMt0OQNNkHbnbaPzvQsBzWj BUjl2DCQ1poX2oT7lR0Sb5Qfy2Gp/luW9utAlElzthhJHnOA0Uc+2ttkP97N3NAyPc5H 5EjCLWJ2/y35NtsYGcNOqcDytzwNW3yQPwhnbLJtsuSCx5W8SGJQV38pnmcdjxPBgtgY 2L9ksT4rqbf86k9BOb548bCDLt+eLdVRJVFrsD5wx2FX7EfKGFrNfxiXxTk6PtvhrsKw CCk0/xZsfiacnGKt34q/f/hw6HyBFHKfqr4tv4PftNu2O56Rt6zH/Oyv/Hmraj6Qk7BL BEaQ== 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 s30si48289967pgk.5.2019.04.16.10.55.13; Tue, 16 Apr 2019 10:55:29 -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 S1730096AbfDPRyI (ORCPT + 99 others); Tue, 16 Apr 2019 13:54:08 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57694 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730347AbfDPRxt (ORCPT ); Tue, 16 Apr 2019 13:53:49 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHE-0005Zn-1p; Tue, 16 Apr 2019 17:53:48 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 53/62] ecryptfs: make use of ->free_inode() Date: Tue, 16 Apr 2019 18:53:31 +0100 Message-Id: <20190416175340.21068-53-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 no idea if crypto destruction could be moved there as well Signed-off-by: Al Viro --- fs/ecryptfs/super.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c index 85411ceb0508..c3e511f2b6c0 100644 --- a/fs/ecryptfs/super.c +++ b/fs/ecryptfs/super.c @@ -67,9 +67,8 @@ static struct inode *ecryptfs_alloc_inode(struct super_block *sb) return inode; } -static void ecryptfs_i_callback(struct rcu_head *head) +static void ecryptfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); struct ecryptfs_inode_info *inode_info; inode_info = ecryptfs_inode_to_private(inode); @@ -92,7 +91,6 @@ static void ecryptfs_destroy_inode(struct inode *inode) inode_info = ecryptfs_inode_to_private(inode); BUG_ON(inode_info->lower_file); ecryptfs_destroy_crypt_stat(&inode_info->crypt_stat); - call_rcu(&inode->i_rcu, ecryptfs_i_callback); } /** @@ -186,6 +184,7 @@ static int ecryptfs_show_options(struct seq_file *m, struct dentry *root) const struct super_operations ecryptfs_sops = { .alloc_inode = ecryptfs_alloc_inode, .destroy_inode = ecryptfs_destroy_inode, + .free_inode = ecryptfs_free_inode, .statfs = ecryptfs_statfs, .remount_fs = NULL, .evict_inode = ecryptfs_evict_inode, -- 2.11.0