Re: [PATCH] do_generic_file_read / readahead adjustments

Andrew Morton (akpm@digeo.com)
Wed, 16 Oct 2002 11:03:38 -0700


David Howells wrote:
>
> This patch is the alternative: make a function (do_generic_mapping_read())
> that I can pass an inode or an address_space to, and make
> do_generic_file_read() call that. This allows me to make use of readahead
> semantics without having to reinvent them for myself.
>

OK. The current readahead and mpage code is really designed just
for ext2-style filesystems. It was always expected that it would
have to grow as more sophisticated filesytems put demands upon it.

Your change is a perfectly sensible generalisation. The reiserfs
team have been making noises about lower-level readahead hooks as well,
and I think your patch largely addresses those. I shall ping them.
-
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/