Re: UTF-8 and case-insensitivity

Jamie Lokier
2004-02-19T16:38:46Z

Linus Torvalds wrote:
> For example, the rule can be that _any_ regular dentry create will
> invalidate all the "case-insensitive" dentries. Just to be simple about
> it.

If that's the rule, then with exactly the same algorithmic efficiency,
readdir+dnotify can be used to maintain the cache in userspace
instead. There is nothing gained by using the helper module in that case.

It follows that a helper module is only useful if readdir+dnotify
isn't fast enough, and the invalidation rule has to be more selective.

(Although, maybe there are atomicity concerns I haven't thought of).

-- Jamie