---
name: "inode_add_to_lists"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/inode_add_to_lists"
---

# inode\_add\_to\_lists(9)

add a new inode to relevant lists

## NAME

inode\_add\_to\_lists - add a new inode to relevant lists

## SYNOPSIS

**void inode\_add\_to\_lists(struct super\_block \*** *sb***, struct inode \*** *inode***);**

## ARGUMENTS

*sb*

superblock inode belongs to

*inode*

inode to mark in use

## DESCRIPTION

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.

## COPYRIGHT
