title: What is the maximum number of subdirectories allowed in Ext4?
body: <p>I am considering moving my ext3 partition to ext4 in order to overcome the 32000 subdirectory limit.  I have seen two different numbers thrown around about the limits of ext4, both from reputable sources:</p>
  
  <p>Limit of 64,000:</p>
  
  <ul>
  <li><a href="https://ext4.wiki.kernel.org/index.php/Ext4_Howto#EXT4_features" rel="noreferrer">ext4.wiki.kernel.org</a></li>
  <li><a href="https://serverfault.com/questions/483040/if-i-upgrade-an-ext3-fs-to-ext4-will-it-automatically-increase-the-maximum-amou">SO ServerFault</a></li>
  </ul>
  
  <p>Unlimited:</p>
  
  <ul>
  <li><a href="http://kernelnewbies.org/Ext4" rel="noreferrer">Kernel Newbies</a></li>
  <li><a href="https://www.kernel.org/doc/ols/2007/ols2007v2-pages-21-34.pdf" rel="noreferrer">Kernel.org</a></li>
  <li><a href="https://superuser.com/questions/66331/what-is-the-maximum-number-of-folders-allowed-in-a-folder-in-linux">SO SuperUser</a></li>
  </ul>
  
  <p>What is the correct answer, and how can I determine the correct answer from the ext4 source?</p>