---
name: "journal_dirty_data"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/journal_dirty_data"
---

# journal\_dirty\_data(9)

mark a buffer as containing dirty data to be flushed

## NAME

journal\_dirty\_data - mark a buffer as containing dirty data to be flushed

## SYNOPSIS

**int journal\_dirty\_data(handle\_t \*** *handle***, struct buffer\_head \*** *bh***);**

## ARGUMENTS

*handle*

transaction

*bh*

bufferhead to mark

## DESCRIPTION

Mark a buffer as containing dirty data which needs to be flushed before we can commit the current transaction.

The buffer is placed on the transaction's data list and is marked as belonging to the transaction.

Returns error number or 0 on success.

**journal\_dirty\_data** can be called via page\_launder-\>ext3\_writepage by kswapd.

## AUTHORS

**Roger Gammans** \<rgammans@computer-surgery.co.uk\>

Author.

**Stephen Tweedie** \<sct@redhat.com\>

Author.

## COPYRIGHT
