lkml.org 
[lkml]   [2007]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 10/14] Use page_cache_xx in fs/sync.
    Signed-off-by: Christoph Lameter <clameter@sgi.com>

    ---
    fs/sync.c | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    Index: vps/fs/sync.c
    ===================================================================
    --- vps.orig/fs/sync.c 2007-06-04 17:57:25.000000000 -0700
    +++ vps/fs/sync.c 2007-06-09 21:17:45.000000000 -0700
    @@ -252,8 +252,8 @@ int do_sync_mapping_range(struct address
    ret = 0;
    if (flags & SYNC_FILE_RANGE_WAIT_BEFORE) {
    ret = wait_on_page_writeback_range(mapping,
    - offset >> PAGE_CACHE_SHIFT,
    - endbyte >> PAGE_CACHE_SHIFT);
    + page_cache_index(mapping, offset),
    + page_cache_index(mapping, endbyte));
    if (ret < 0)
    goto out;
    }
    @@ -267,8 +267,8 @@ int do_sync_mapping_range(struct address

    if (flags & SYNC_FILE_RANGE_WAIT_AFTER) {
    ret = wait_on_page_writeback_range(mapping,
    - offset >> PAGE_CACHE_SHIFT,
    - endbyte >> PAGE_CACHE_SHIFT);
    + page_cache_index(mapping, offset),
    + page_cache_index(mapping, endbyte));
    }
    out:
    return ret;
    --
    -
    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-06-14 21:47    [W:0.019 / U:0.288 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site