---
name: "sync_inode"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sync_inode"
---

# sync\_inode(9)

write an inode and its pages to disk.

## NAME

sync\_inode - write an inode and its pages to disk.

## SYNOPSIS

**int sync\_inode(struct inode \*** *inode***, struct writeback\_control \*** *wbc***);**

## ARGUMENTS

*inode*

the inode to sync

*wbc*

controls the writeback mode

## DESCRIPTION

**sync\_inode** will write an inode and its pages to disk. It will also correctly update the inode on its superblock's dirty inode lists and will update inode-\>i\_state.

The caller must have a ref on the inode.

## COPYRIGHT
