Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5932325pxb; Mon, 14 Feb 2022 11:02:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPtyKTvh+0OBlG9mW8IuvPLQ+XAYDwfFAJs217N5HBT5fShUjrTQOeSCwDa9ein8GNMnU5 X-Received: by 2002:a05:6870:d998:b0:d1:26ac:8e49 with SMTP id gn24-20020a056870d99800b000d126ac8e49mr68046oab.105.1644865341973; Mon, 14 Feb 2022 11:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644865341; cv=none; d=google.com; s=arc-20160816; b=b2yOvmvbg6gA3m7k6zQGccOP1vbU8zXt6ZXomPWwIvunymvFjMZNacaaEdc8/7Vem1 9ci7mwMmvkxTfwucWuyVF0cl8TlAjyyVrAjuwnrEjGukqYX7k5H/W/JfzSPeuZq+y07l VlkSv9QN4Mu9qFfcwi17yo1zpIwTbefbJMnnO7ijXUiAARaBvOBgcJQf5eD2RLYSApAe C5BSmO67hf/UY4DbZbxG8rhB+8aOpNihtHYTFJzpp8NfOE6/yXHsX4s5lEBX30lsT2f3 IKkdNkYJt0YPwsgnE/MVxc0VZzjU7+HPFm/FPYdTdYTVCX8l4QoPlqit/M3QcoqdpjBO LmPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=ygMYq9GxianAOufZTxAtBawTeLv8hPQt6ez+kD7no38=; b=ryzraUfrkyJBAmbgWPmNS9RVqs8qnvipX6VfsyhI7wZAroYjWO7tQSYB4KBUKXV/lH kh+jMHiWkb+hY8z5Lg1x8aumbwYzYrQVW45KwIHDqr3ionkhBL0Exhil/XGNOTrWWyo/ Nes6nDSIWQEPI8aI/J5xFWB0AK6bY8wMVxFLOpxGoxp641tNg3m+O5WTKxzceP2tssbJ fN4kADhynYAaRkbdacP4dbN9UwnEsgDpdkVwVaOGbM+EoTqVIWm+p8UM/v/8DGlsBWx4 oBmLrGgoXJBE303FCQYwzVbVdH/uMCdMSsPlc2GiwEEXJgP4beNqCYxcdZiXO8txaaEv eg6A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bq11si13545331oib.355.2022.02.14.11.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:02:21 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D2DBCB911; Mon, 14 Feb 2022 11:00:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348950AbiBNSH2 (ORCPT + 99 others); Mon, 14 Feb 2022 13:07:28 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235368AbiBNSH1 (ORCPT ); Mon, 14 Feb 2022 13:07:27 -0500 X-Greylist: delayed 601 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 14 Feb 2022 10:07:17 PST Received: from agrajag.zerfleddert.de (agrajag.zerfleddert.de [88.198.237.222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D60AB60D9A; Mon, 14 Feb 2022 10:07:17 -0800 (PST) Received: by agrajag.zerfleddert.de (Postfix, from userid 1000) id 65B9C5B203F1; Mon, 14 Feb 2022 18:57:12 +0100 (CET) Date: Mon, 14 Feb 2022 18:57:12 +0100 From: Tobias Jordan To: Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: trivial@kernel.org Subject: [PATCH] inode: fix comment for find_inode_by_ino_rcu Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix obvious copy-and-paste relics in comment for find_inode_by_ino_rcu. Fixes: 3f19b2ab97a9 ("vfs, afs, ext4: Make the inode hash table RCU searchable") Signed-off-by: Tobias Jordan --- fs/inode.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/fs/inode.c b/fs/inode.c index 63324df6fa27..c297d57ee9c7 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -1587,19 +1587,11 @@ EXPORT_SYMBOL(find_inode_rcu); * find_inode_by_ino_rcu - Find an inode in the inode cache * @sb: Super block of file system to search * @ino: The inode number to match * - * Search for the inode specified by @hashval and @data in the inode cache, - * where the helper function @test will return 0 if the inode does not match - * and 1 if it does. The @test function must be responsible for taking the - * i_lock spin_lock and checking i_state for an inode being freed or being - * initialized. + * Search for the inode specified by @ino in the inode cache. * - * If successful, this will return the inode for which the @test function - * returned 1 and NULL otherwise. - * - * The @test function is not permitted to take a ref on any inode presented. - * It is also not permitted to sleep. + * If successful, this will return the inode, NULL otherwise. * * The caller must hold the RCU read lock. */ struct inode *find_inode_by_ino_rcu(struct super_block *sb, -- 2.30.2