1INODE_ADD_TO_LISTS(9) The Linux VFS INODE_ADD_TO_LISTS(9)
2
3
4
6 inode_add_to_lists - add a new inode to relevant lists
7
9 void inode_add_to_lists(struct super_block * sb, struct inode * inode);
10
12 sb
13 superblock inode belongs to
14
15 inode
16 inode to mark in use
17
19 When an inode is allocated it needs to be accounted for, added to the
20 in use list, the owning superblock and the inode hash. This needs to be
21 done under the inode_lock, so export a function to do this rather than
22 the inode lock itself. We calculate the hash list to add to here so it
23 is all internal which requires the caller to have already set up the
24 inode number in the inode to add.
25
27Kernel Hackers Manual 2.6. June 2019 INODE_ADD_TO_LISTS(9)