Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423701yba; Tue, 16 Apr 2019 11:01:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqylDwWxrCwlRUpXu/XmyneIGIv/vWcQeM0u8QBQGePIs9rpEanTwr7sZmkkL4f6epMnEf0D X-Received: by 2002:a63:d1f:: with SMTP id c31mr76798862pgl.353.1555437692872; Tue, 16 Apr 2019 11:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437692; cv=none; d=google.com; s=arc-20160816; b=CiUX7bXLE+iZngoYgeZOC8ER51Msg2oA1IdoewVufn0OU05NXBmjHnGUnu9rvU0Z1s JReIdP2MVVy3jKXkbzLd+b+R+w7LYF2jo/Mdd6ZhkX571FSIsa1iGhJC6EVQmmcuqry+ BioOpnKJtbLQPZNZlJRTpEcg+VL9DBazHzAsIHd8J1f6hcdiU+zmHdeMOl9fC77TzMgH +9i8WwaEflw5G4Ql3GExEHC1vjnsBmYSoi3rvdm9wFSz/CbhV1Do5JtUKO6PY9XLcf/S khmsO023E67oRySUxEiEL4f64p/tGRhyUtLUNGliCj3BVTgdPwhgPBQoNP2KGS3facf6 yK7A== 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=u7stGR11qKmXxrM32kAx9kv8DcJdhjKBVTjVay0gOIM=; b=bnTGBVBakg4MRTPPIQmJsu1jT25zyeoIT9YdY0/vY/SdrdA7M5H1LyVeJTKtmL8c2o 8Lwf2qjM3J9I7/n46ksEayYTp3paniOeLoWjFAVOJXG76dAnNI0ZJHCllmLUXt7Nr19L 7GYLVxpycAyCgnHnew2aHwuYPK2JR405xP/GCOqaGd0/Tgn8ncaC/LRB+RnqSG+A3lhP iL/nDE77AvCu4QFjmkBNpRBkw3oW9Z1W8dkkgWqFyAIkUTnGBSCcmZYJfZiOJCAvKgqF DM9NZ6xNNRFAnxubwCL2Id7yi8qZqOOQQhL76Ra/EuA2V3SgjfOeVH8pfZ6/Woxw5/sS sRJg== 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 m7si48182994pgg.78.2019.04.16.11.01.12; Tue, 16 Apr 2019 11:01:32 -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 S1730855AbfDPR7B (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:01 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57522 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730223AbfDPRxo (ORCPT ); Tue, 16 Apr 2019 13:53:44 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH8-0005VI-4N; Tue, 16 Apr 2019 17:53:42 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 10/62] bfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:48 +0100 Message-Id: <20190416175340.21068-10-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/bfs/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c index d136b2aaafb3..dc0cd2aa3d65 100644 --- a/fs/bfs/inode.c +++ b/fs/bfs/inode.c @@ -245,17 +245,11 @@ static struct inode *bfs_alloc_inode(struct super_block *sb) return &bi->vfs_inode; } -static void bfs_i_callback(struct rcu_head *head) +static void bfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(bfs_inode_cachep, BFS_I(inode)); } -static void bfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, bfs_i_callback); -} - static void init_once(void *foo) { struct bfs_inode_info *bi = foo; @@ -287,7 +281,7 @@ static void destroy_inodecache(void) static const struct super_operations bfs_sops = { .alloc_inode = bfs_alloc_inode, - .destroy_inode = bfs_destroy_inode, + .free_inode = bfs_free_inode, .write_inode = bfs_write_inode, .evict_inode = bfs_evict_inode, .put_super = bfs_put_super, -- 2.11.0