HDFS-6099: Simplify method signature of verifyMaxDirItems.