linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] inode: fix comment for find_inode_by_ino_rcu
@ 2022-02-14 17:57 Tobias Jordan
  0 siblings, 0 replies; only message in thread
From: Tobias Jordan @ 2022-02-14 17:57 UTC (permalink / raw)
  To: Alexander Viro, linux-fsdevel, linux-kernel; +Cc: trivial

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 <kernel@cdqe.de>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-14 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 17:57 [PATCH] inode: fix comment for find_inode_by_ino_rcu Tobias Jordan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).