+ + dir = opendir(path); + if (!dir) + return -1; Could we cache/check the opendir result through file_available too? The rest looks good Reviewed-by: Andi Kleen <ak@xxxxxxxxxxxxxxx> -Andi
+ + dir = opendir(path); + if (!dir) + return -1;