Re: O_ANY [was: Re: 'native files', 'object fingerprints' [was: sendpath()]]

From: Ingo Molnar (mingo@elte.hu)
Date: Tue Jan 16 2001 - 07:09:38 EST


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/



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:12 EST