2010/7/20 shenghui <crosslonelyover@xxxxxxxxx>: > 2010/7/20 Andreas Gruenbacher <agruen@xxxxxxx>: > > Sorry, I haven't found any special attention on > sysctl_vfs_cache_pressure == 0 case or scale > nr_to_scan in fs/dcache.c > > 900static int shrink_dcache_memory(int nr, gfp_t gfp_mask) > 901{ > 902 if (nr) { > 903 if (!(gfp_mask & __GFP_FS)) > 904 return -1; > 905 prune_dcache(nr); > 906 } > 907 return (dentry_stat.nr_unused / 100) * sysctl_vfs_cache_pressure; > 908} > And for sysctl_vfs_cache_pressure == 0 case, it's enough to return 0 to indicate no cache entries left. -- Thanks and Best Regards, shenghui -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href