1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>journal_dirty_data</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="functions.html#transaction_level" title="Transasction Level"><link rel="prev" href="API-journal-get-undo-access.html" title="journal_get_undo_access"><link rel="next" href="API-journal-dirty-metadata.html" title="journal_dirty_metadata"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">journal_dirty_data</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-journal-get-undo-access.html">Prev</a> </td><th width="60%" align="center">Transasction Level</th><td width="20%" align="right"> <a accesskey="n" href="API-journal-dirty-metadata.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-journal-dirty-data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>journal_dirty_data — 2 mark a buffer as containing dirty data to be flushed 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">journal_dirty_data </b>(</code></td><td>handle_t * <var class="pdparam">handle</var>, </td></tr><tr><td> </td><td>struct buffer_head * <var class="pdparam">bh</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1103908452"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>handle</code></em></span></dt><dd><p> 4 transaction 5 </p></dd><dt><span class="term"><em class="parameter"><code>bh</code></em></span></dt><dd><p> 6 bufferhead to mark 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1103911028"></a><h2>Description</h2><p> 8 Mark a buffer as containing dirty data which needs to be flushed before 9 we can commit the current transaction. 10 </p><p> 11 12 The buffer is placed on the transaction's data list and is marked as 13 belonging to the transaction. 14 </p><p> 15 16 Returns error number or 0 on success. 17 </p><p> 18 19 <code class="function">journal_dirty_data</code> can be called via page_launder->ext3_writepage 20 by kswapd. 21</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-journal-get-undo-access.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="functions.html#transaction_level">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-journal-dirty-metadata.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">journal_get_undo_access</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">journal_dirty_metadata</span></td></tr></table></div></body></html> 22