Re: O_ANY [was: Re: 'native files', 'object fingerprints' [was:

Ingo Molnar (mingo@elte.hu)
Tue, 16 Jan 2001 13:09:38 +0100 (CET)


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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/