Badari Pulavarty <pbadari@xxxxxxxxxx> wrote:Yes. Currently the code which handles hole can only deal with a single block at a time.
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.
Will do.
Either way, there should be a comment in there explaining the protocol,
please.