On Dec 30, 2013, at 12:18, Dave Hansen <dave.han...@intel.com> wrote:
> 
> Why is this necessary to do in the kernel?  Why not leave it to
> userspace to walk the filesystem(s)?

I would suspect that trying to do it in userspace would be quite bad. It would 
require traversing the whole directory tree to issue cache flushed for each 
subdirectory, but it doesn't know when to stop traversal. That would mean the 
"cache flush" would turn into "cache pollute" and cause a lot of disk IO for 
subdirectories not in cache to begin with. 

Cheers, Andreas--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to