From: Ian Campbell <ijc@hellion.org.uk>
To: Jamie Lokier <jamie@shareable.org>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-cifs-client@lists.samba.org, "Asser Femø" <asser@diku.dk>
Subject: Re: dnotify/inotify and vfs questions
Date: Thu, 25 Aug 2005 13:40:18 +0100 [thread overview]
Message-ID: <1124973618.17190.9.camel@icampbell-debian> (raw)
In-Reply-To: <20050823152331.GA10486@mail.shareable.org>
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.
next prev parent reply other threads:[~2005-08-25 12:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-23 13:00 dnotify/inotify and vfs questions Asser Femø
2005-08-23 15:23 ` Jamie Lokier
2005-08-23 15:23 ` Jamie Lokier
2005-08-25 12:40 ` Ian Campbell [this message]
2005-08-25 14:57 ` Jamie Lokier
2005-08-25 15:07 ` Ian Campbell
2005-08-25 15:07 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1124973618.17190.9.camel@icampbell-debian \
--to=ijc@hellion.org.uk \
--cc=asser@diku.dk \
--cc=jamie@shareable.org \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.