Re: [PATCH] do_generic_file_read / readahead adjustments

From: Andrew Morton (
Date: Wed Oct 16 2002 - 11:19:10 EST

David Howells wrote:
> The attached patch does the following three things:
> (1) Makes the functions in mm/readahead.c only use struct file* to pass to
> readpage(). address_mapping* and file_ra_state* are used instead to keep
> track of readahead stuff.
> (2) Adds a new function do_generic_mapping_read() that is similar to
> do_generic_file_read(), except that it uses a mapping pointer and a
> readahead state pointer to access a file. The file* is only used to pass
> to readpage().
> (3) Turns do_generic_file_read() into an inline function in linux/fs.h that
> simply wraps do_generic_mapping_read().

Seems sensible. Is there something out there which actually uses this?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:28 EST