32000 files limit

Hi,
I'm using a server for file hosting and all file folders are at the same directory, like this:

files/5/file.zip
files/6/file.jpg
...
files/928/file.zip

But when the files directory reaches 32k folders it crashes. I'm not sure if this is from CentOS, the Kernel or the file system, but is there a way to surpass it? Is there any potential risk in doing so?

Thanks

 

 

 

 

Top