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/
- Re: Is sendfile all that sexy? Jonathan Thackray
- Re: Is sendfile all that sexy? Linus Torvalds
- [patch] sendpath() support, 2.4.0-test3/-ac9 Ingo Molnar
- Re: [patch] sendpath() support, 2.4.0-test3... dean gaudet
- Re: [patch] sendpath() support, 2.4.0-test3... Linus Torvalds
- 'native files', 'object fingerprints' [was:... Ingo Molnar
- Re: 'native files', 'object fingerprints' [... Andi Kleen
- Re: 'native files', 'object fingerprints' [... Ingo Molnar
- Re: 'native files', 'object fingerprints' [... Andi Kleen
- O_ANY [was: Re: 'native files', 'object fi... Ingo Molnar
- Re: O_ANY [was: Re: 'native files', 'objec... Ingo Molnar
- Re: O_ANY [was: Re: 'native files', 'objec... Peter Samuelson
- Re: O_ANY [was: Re: 'native files', 'objec... Ingo Molnar
- Re: O_ANY [was: Re: 'native files', 'objec... Felix von Leitner
- Re: O_ANY [was: Re: 'native files', 'objec... Andi Kleen
- Re: O_ANY [was: Re: 'native files', 'objec... Mitchell Blank Jr
- Re: 'native files', 'object fingerprints' [... Jamie Lokier
- Re: 'native files', 'object fingerprints' [... Felix von Leitner
- Re: 'native files', 'object fingerprints' [... Linus Torvalds
- Re: 'native files', 'object fingerprints' [... dean gaudet
- Re: 'native files', 'object fingerprints' [... Pavel Machek

