UBIFS: correct condition to eliminate unecessary assignment
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 17 Sep 2008 09:11:13 +0000 (12:11 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 30 Sep 2008 08:12:59 +0000 (11:12 +0300)
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
fs/ubifs/tnc.c

index e0878a4..d27fd91 100644 (file)
@@ -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