Skip to contentSkip to conversation

vfs: fix the kernel-doc of find_inode_by_ino_rcu

PATCH New Jeffle Xu 1 participant 1 message Jul 13, 2020 VFS

lore
Share & tools
lore

Jeffle Xu

author
#0 lore raw

PATCH 1/1 vfs: fix the kernel-doc of find_inode_by_ino_rcu

Fixes 3f19b2ab97a9 ("vfs, afs, ext4: Make the inode hash table RCU searchable")
---
 fs/inode.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
fs/inode.c +3 -11
index 72c4c347afb7..1807c0d336b1 100644
@@ -1494,21 +1494,13 @@ struct inode *find_inode_rcu(struct super_block *sb, unsigned long hashval,
 EXPORT_SYMBOL(find_inode_rcu);
 
 /**
- * find_inode_by_rcu - Find an inode in the inode cache
+ * 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 by inode number 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 and NULL otherwise.
  *
  * The caller must hold the RCU read lock.
  */
Signature · 1 line
2.27.0