lkml.org 
[lkml]   [2004]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: explicit dcache <-> user-space cache coherency, sys_mark_dir_clean(), O_CLEAN
Christer Weinigel wrote:
> > long sys_mark_dir_clean(dirfd);
> >
> > the syscall returns whether the directory was valid/clean already.
>
> Isn't this rather bad, it's only possible to have one process that
> does this magic clean bit thing. Other applications such as Wine or
> a DOS emulator might want to get the same speedups.

No. The magic clean bit is associated with dirfd - different file
descriptors have separate magic clean bits.

> Add a new create syscall with the same idea as your one bit syscall,
> which checks that the generation number matches. If the generation
> number doesn't match the create call fails.
>
> int create_synchronized(name, mode, generation);

Hmm. That's an interesting idea.

-- Jamie
-
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-03-22 14:01    [W:0.414 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site