浏览代码

UBIFS: correct condition to eliminate unecessary assignment

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Adrian Hunter 16 年之前
父节点
当前提交
63c300b68f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ubifs/tnc.c

+ 1 - 1
fs/ubifs/tnc.c

@@ -1600,7 +1600,7 @@ out:
 	 * An enormous hole could cause bulk-read to encompass too many
 	 * An enormous hole could cause bulk-read to encompass too many
 	 * page cache pages, so limit the number here.
 	 * 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;
 		bu->blk_cnt = UBIFS_MAX_BULK_READ;
 	/*
 	/*
 	 * Ensure that bulk-read covers a whole number of page cache
 	 * Ensure that bulk-read covers a whole number of page cache