lkml.org 
[lkml]   [2008]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] UBIFS: correct condition to eliminate unecessary assignment
    Date
    From: Adrian Hunter <ext-adrian.hunter@nokia.com>

    Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
    ---
    fs/ubifs/tnc.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c
    index e0878a4..d27fd91 100644
    --- a/fs/ubifs/tnc.c
    +++ b/fs/ubifs/tnc.c
    @@ -1600,7 +1600,7 @@ out:
    * An enormous hole could cause bulk-read to encompass too many
    * page cache pages, so limit the number here.
    */
    - if (bu->blk_cnt >= UBIFS_MAX_BULK_READ)
    + if (bu->blk_cnt > UBIFS_MAX_BULK_READ)
    bu->blk_cnt = UBIFS_MAX_BULK_READ;
    /*
    * Ensure that bulk-read covers a whole number of page cache
    --
    1.5.4.1


    \
     
     \ /
      Last update: 2008-09-30 09:47    [W:0.025 / U:29.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site