lkml.org 
[lkml]   [2007]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 08/14] readahead: remove parameter ra_max from thrashing_recovery_readahead()
    Remove the unused @ra_max from thrashing_recovery_readahead().

    Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
    ---
    mm/readahead.c | 8 +++-----
    1 file changed, 3 insertions(+), 5 deletions(-)

    --- linux-2.6.21-rc3-mm2.orig/mm/readahead.c
    +++ linux-2.6.21-rc3-mm2/mm/readahead.c
    @@ -1567,9 +1567,8 @@ try_backward_prefetching(struct file_ra_
    * Readahead thrashing recovery.
    */
    static unsigned long
    -thrashing_recovery_readahead(struct address_space *mapping,
    - struct file *filp, struct file_ra_state *ra,
    - pgoff_t offset, unsigned long ra_max)
    +thrashing_recovery_readahead(struct address_space *mapping, struct file *filp,
    + struct file_ra_state *ra, pgoff_t offset)
    {
    unsigned long ra_size;
    int unbalanced_aging = probe_page(mapping, offset - 1);
    @@ -1682,8 +1681,7 @@ page_cache_readahead_adaptive(struct add
    * Recover from possible thrashing.
    */
    if (!page && offset - ra->prev_page <= 1 && ra_has_index(ra, offset))
    - return thrashing_recovery_readahead(mapping, filp, ra,
    - offset, ra_max);
    + return thrashing_recovery_readahead(mapping, filp, ra, offset);

    /*
    * State based sequential read-ahead.
    --
    -
    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/

    \
     
     \ /
      Last update: 2007-03-16 09:55    [W:0.020 / U:1.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site