Re: [PATCH] do_generic_file_read / readahead adjustments

Andrew Morton (akpm@digeo.com)
Wed, 16 Oct 2002 09:19:10 -0700


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