mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
vfs: inode insertion kdoc corrections
Some minor corrections to the inode_insert5 and iget5_locked kernel documentation. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Link: https://lore.kernel.org/r/20241004115151.44834-1-agruenba@redhat.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
0cb9c994e7
commit
c298638743
25
fs/inode.c
25
fs/inode.c
|
|
@ -1239,16 +1239,15 @@ EXPORT_SYMBOL(unlock_two_nondirectories);
|
|||
* @data: opaque data pointer to pass to @test and @set
|
||||
*
|
||||
* Search for the inode specified by @hashval and @data in the inode cache,
|
||||
* and if present it is return it with an increased reference count. This is
|
||||
* a variant of iget5_locked() for callers that don't want to fail on memory
|
||||
* allocation of inode.
|
||||
* and if present return it with an increased reference count. This is a
|
||||
* variant of iget5_locked() that doesn't allocate an inode.
|
||||
*
|
||||
* If the inode is not in cache, insert the pre-allocated inode to cache and
|
||||
* If the inode is not present in the cache, insert the pre-allocated inode and
|
||||
* return it locked, hashed, and with the I_NEW flag set. The file system gets
|
||||
* to fill it in before unlocking it via unlock_new_inode().
|
||||
*
|
||||
* Note both @test and @set are called with the inode_hash_lock held, so can't
|
||||
* sleep.
|
||||
* Note that both @test and @set are called with the inode_hash_lock held, so
|
||||
* they can't sleep.
|
||||
*/
|
||||
struct inode *inode_insert5(struct inode *inode, unsigned long hashval,
|
||||
int (*test)(struct inode *, void *),
|
||||
|
|
@ -1312,16 +1311,16 @@ EXPORT_SYMBOL(inode_insert5);
|
|||
* @data: opaque data pointer to pass to @test and @set
|
||||
*
|
||||
* Search for the inode specified by @hashval and @data in the inode cache,
|
||||
* and if present it is return it with an increased reference count. This is
|
||||
* a generalized version of iget_locked() for file systems where the inode
|
||||
* and if present return it with an increased reference count. This is a
|
||||
* generalized version of iget_locked() for file systems where the inode
|
||||
* number is not sufficient for unique identification of an inode.
|
||||
*
|
||||
* If the inode is not in cache, allocate a new inode and return it locked,
|
||||
* hashed, and with the I_NEW flag set. The file system gets to fill it in
|
||||
* before unlocking it via unlock_new_inode().
|
||||
* If the inode is not present in the cache, allocate and insert a new inode
|
||||
* and return it locked, hashed, and with the I_NEW flag set. The file system
|
||||
* gets to fill it in before unlocking it via unlock_new_inode().
|
||||
*
|
||||
* Note both @test and @set are called with the inode_hash_lock held, so can't
|
||||
* sleep.
|
||||
* Note that both @test and @set are called with the inode_hash_lock held, so
|
||||
* they can't sleep.
|
||||
*/
|
||||
struct inode *iget5_locked(struct super_block *sb, unsigned long hashval,
|
||||
int (*test)(struct inode *, void *),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user