• Andrew Morton's avatar
    [PATCH] combine generic_writepages() and mpage_writepages() · c0902cac
    Andrew Morton authored
    generic_writepages and mpage_writepages are basically identical,
    except one calls ->writepage() and the other calls mpage_writepage().
    This duplication is irritating.
    
    The patch folds generic_writepage() into mpage_writepages().  It does
    this rather kludgily: if the get_block argument to mpage_writepages()
    is NULL then use ->writepage().
    
    Can't think of a better way, really - we could go for a fully-blown
    write_actor_t thing, but that would be overly elaborate and would not
    allow mpage_writepage() to be inlined inside mpage_writepages(), which
    is rather desirable.
    c0902cac
mpage.c 16.7 KB