It is known that ext2/ext3 FS have a rather low limit of about 32k files/directories per directory.

It looks like ReiserFS is limited in practice by the r5 hash function which allows about 1 200 000 file names without collisions.

But what about other common Linux File Systems? JFS, XFS, Btrfs, Reiser4, ext4,...

Thanks in advance!

2 Answers 2


EXT4 either has the limit of 64k or no limit, depending on which wiki you read (I assume that earlier versions had 64k limit and newer have no hard limit). It is still limited by the maximum count of links the Directory Index can contain, and that depends on that particular filesystem attributes (block size for example).

XFS, AFAIK, has no limit, so does Reiser4. Out of my head I wouldn't recall the case of other filesystems; VxFS is definitely very robust and if it has a limit, it's very high (not sure how much helpful this information is :-) ).

  • 1
    Ext4 has no per-directory limit if the dir_index and dir_nlink features are set. (They are the default for new file systems.) Old directories need to be upgraded to dir_nlink by running e2fsck -f -D. Dec 4, 2017 at 8:35

visit wiki link



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.