Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:58
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:search the inode cache for a matching inode number.* If we find one, then the inode number we are trying to* allocate is not unique and so we should not use it.* Returns 1 if the inode number is unique, 0 if it is not.

Proto:static int test_inode_iunique(struct super_block *sb, unsigned long ino)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
unsigned longino
1242  b = inode_hashtable + hash(sb, ino)
1245  spin_lock( & inode_hash_lock)
1247  If Stat data, not accessed from path walking == ino && i_sb == sb Then
1248  spin_unlock( & inode_hash_lock)
1249  Return 0
1252  spin_unlock( & inode_hash_lock)
1254  Return 1
Caller
NameDescribe
iuniqueget a unique inode number