---
name: "mark_buffer_dirty"
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/mark_buffer_dirty"
---

# mark\_buffer\_dirty(9)

mark a buffer\_head as needing writeout

## NAME

mark\_buffer\_dirty - mark a buffer\_head as needing writeout

## SYNOPSIS

**void mark\_buffer\_dirty(struct buffer\_head \*** *bh***);**

## ARGUMENTS

*bh*

the buffer\_head to mark dirty

## DESCRIPTION

**mark\_buffer\_dirty** will set the dirty bit against the buffer, then set its backing page dirty, then tag the page as dirty in its address\_space's radix tree and then attach the address\_space's inode to its superblock's dirty inode list.

**mark\_buffer\_dirty** is atomic. It takes bh-\>b\_page-\>mapping-\>private\_lock, mapping-\>tree\_lock and mapping-\>host-\>i\_lock.

## COPYRIGHT
