I have a directory (my_dir) which has 20 sub directories. Every time I run 'ls' or try to autocomplete a file name in this directory my IO usage goes to 100% and it takes very long time (10 mins) to list 20 sub directories.
Here is some background for it. Some time ago, I created millions of small files in this directory (By mistake). Then I deleted those small files (all of them). But now I am seeing this problem.
How can I fix it ?