1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>jbd2__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-jbd2-journal-extend.html" title="jbd2_journal_extend"><link rel="next" href="API-jbd2-journal-lock-updates.html" title="jbd2_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">jbd2__journal_restart</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-jbd2-journal-extend.html">Prev</a> </td><th width="60%" align="center">Transasction Level</th><td width="20%" align="right"> <a accesskey="n" href="API-jbd2-journal-lock-updates.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-jbd2--journal-restart"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>jbd2__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">jbd2__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>, </td></tr><tr><td> </td><td>gfp_t <var class="pdparam">gfp_mask</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.8.5.4.5.5"></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><dt><span class="term"><em class="parameter"><code>gfp_mask</code></em></span></dt><dd><p>
8     -- undescribed --
9    </p></dd></dl></div></div><div class="refsect1"><a name="id-1.8.5.4.5.6"></a><h2>Description</h2><p>
10   Restart a handle for a multi-transaction filesystem
11   operation.
12   </p><p>
13
14   If the <code class="function"><a class="link" href="API-jbd2-journal-extend.html" title="jbd2_journal_extend">jbd2_journal_extend</a></code> call above fails to grant new buffer credits
15   to a running handle, a call to jbd2_journal_restart will commit the
16   handle's transaction so far and reattach the handle to a new
17   transaction capabable of guaranteeing the requested number of
18   credits. We preserve reserved handle if there's any attached to the
19   passed in handle.
20</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-jbd2-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-jbd2-journal-lock-updates.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">jbd2_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">jbd2_journal_lock_updates</span></td></tr></table></div></body></html>
21