1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>journal_restart</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-extend.html" title="journal_extend"><link rel="next" href="API-journal-lock-updates.html" title="journal_lock_updates"></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_restart</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-journal-extend.html">Prev</a> </td><th width="60%" align="center">Transasction Level</th><td width="20%" align="right"> <a accesskey="n" href="API-journal-lock-updates.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-journal-restart"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>journal_restart — 2 restart a handle. 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_restart </b>(</code></td><td>handle_t * <var class="pdparam">handle</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">nblocks</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1103856492"></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 handle to restart 5 </p></dd><dt><span class="term"><em class="parameter"><code>nblocks</code></em></span></dt><dd><p> 6 nr credits requested 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1103859132"></a><h2>Description</h2><p> 8 Restart a handle for a multi-transaction filesystem 9 operation. 10 </p><p> 11 12 If the <code class="function">journal_extend</code> call above fails to grant new buffer credits 13 to a running handle, a call to journal_restart will commit the 14 handle's transaction so far and reattach the handle to a new 15 transaction capabable of guaranteeing the requested number of 16 credits. 17</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-extend.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-lock-updates.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">journal_extend</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_lock_updates</span></td></tr></table></div></body></html> 18