Ingo Molnar
Tue, 16 Jan 2001 03:57:44 -0800
On Tue, 16 Jan 2001, Ingo Molnar wrote:
> struct lazy_filedesc {
> int fd;
> struct file *file;
> }
in fact "struct file" can (ab)used for this, no need for new structures or
new fields. Eg. file->f_flags contains the cached descriptor-information.
file->f_list is used for the current->lazy_files ringlist.
this way there is no additional allocation overhead in the worst-case.
(unless i'm missing something obvious.)
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/