1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>generic_shutdown_super</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="registration_and_superblocks.html" title="Registration and Superblocks"><link rel="prev" href="API-deactivate-super.html" title="deactivate_super"><link rel="next" href="API-sget.html" title="sget"></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">generic_shutdown_super</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-deactivate-super.html">Prev</a> </td><th width="60%" align="center">Registration and Superblocks</th><td width="20%" align="right"> <a accesskey="n" href="API-sget.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-generic-shutdown-super"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>generic_shutdown_super — 2 common helper for -><code class="function">kill_sb</code> 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">void <b class="fsfunc">generic_shutdown_super </b>(</code></td><td>struct super_block * <var class="pdparam">sb</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1101886260"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sb</code></em></span></dt><dd><p> 4 superblock to kill 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1101887828"></a><h2>Description</h2><p> 6 <code class="function">generic_shutdown_super</code> does all fs-independent work on superblock 7 shutdown. Typical -><code class="function">kill_sb</code> should pick all fs-specific objects 8 that need destruction out of superblock, call <code class="function">generic_shutdown_super</code> 9 and release aforementioned objects. Note: dentries and inodes _are_ 10 taken care of and do not need specific handling. 11 </p><p> 12 13 Upon calling this function, the filesystem may no longer alter or 14 rearrange the set of dentries belonging to this super_block, nor may it 15 change the attachments of dentries to inodes. 16</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-deactivate-super.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="registration_and_superblocks.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-sget.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">deactivate_super</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">sget</span></td></tr></table></div></body></html> 17