inode_add_to_lists(9)

inode_add_to_lists9

Add a new inode to relevant lists

Usage

void inode_add_to_lists(struct super_block * sb, struct inode * inode);

Arguments

sb

superblock inode belongs to

inode

inode to mark in use

Overview

When an inode is allocated it needs to be accounted for, added to the in use list, the owning superblock and the inode hash. This needs to be done under the inode_lock, so export a function to do this rather than the inode lock itself. We calculate the hash list to add to here so it is all internal which requires the caller to have already set up the inode number in the inode to add.

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.