lkml.org 
[lkml]   [2005]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: dnotify/inotify and vfs questions
On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote:
> <receive some request>...
> if (any_dnotify_or_inotify_events_pending) {
> read_dnotify_or_inotify_events();
> if (any_events_related_to(file)) {
> store_in_userspace_stat_cache(file, stat(file));
> }
> }
> stat_info = lookup_userspace_stat_cache(file);
>
> Now that's a silly way to save one system call in the fast path by itself.

I'm not that familiar with inotify internals but doesn't
read_dnotify_or_inotify_events() or
any_dnotify_or_inotify_events_pending() involve a syscall?

Ian.
--
Ian Campbell
Current Noise: Primordial - The Coffin Ships

Today is the first day of the rest of the mess.

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

\
 
 \ /
  Last update: 2005-08-25 14:44    [W:0.116 / U:7.676 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site