Re: [PATCH] 2.6.16-rc5-mm2 mpage_readpages() cleanup

From: Badari Pulavarty
Date: Mon Mar 06 2006 - 19:12:35 EST




Andrew Morton wrote:

Badari Pulavarty <pbadari@xxxxxxxxxx> wrote:

Instead of passing validity of block mapping, do_mpage_readpage() can figure it out using buffer_mapped(). This will reduce one
un-needed argument passing.


Is buffer_mapped() the correct flag to use? Remember that get_block() can
validly return a !buffer_mapped() bh over a file hole.

Yes. Currently the code which handles hole can only deal with a single block at a time.
All I am trying to do is, find out when to do next getblock() call.


Either way, there should be a comment in there explaining the protocol,
please.

Will do.

Thanks,
Badari



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/