Linux 3.11: Convert from readdir to iterate file operation