Re: [RFC PATCH -v4 12/14] fsnotify: add correlations between events

From: Evgeniy Polyakov
Date: Mon Dec 22 2008 - 04:02:10 EST


On Sun, Dec 21, 2008 at 09:40:01PM -0500, Eric Paris (eparis@xxxxxxxxxx) wrote:
> anyone who uses inotify think there would be a problem with cookie reuse
> coming this soon?

In my experience we only care about cookies to be the same, and not
monotinically grow up. So this may just jump up and down, and since
events are potentially distributed in time (although follow one after
another), wrapping should roughly cover number of processes running (and
potentially renaming objects), so having 20 bits for the counter and 12
for the CPU id should be enough for now.

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