[PATCH] UBIFS: correct condition to eliminate unecessary assignment

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Artem Bityutskiy
Date: Tuesday, September 30, 2008 - 2:19 am

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: What is in ubifs-2.6.git, Artem Bityutskiy, (Tue Sep 30, 12:56 am)
What is in ubifs-2.6.git, Artem Bityutskiy, (Tue Sep 30, 2:18 am)
[PATCH] UBIFS: add a print, fix comments and more minor stuff, Artem Bityutskiy, (Tue Sep 30, 2:18 am)
[PATCH] UBIFS: remove unneeded unlikely(), Artem Bityutskiy, (Tue Sep 30, 2:18 am)
[PATCH] UBIFS: inline one-line functions, Artem Bityutskiy, (Tue Sep 30, 2:18 am)
[PATCH] UBIFS: use an IS_ERR test rather than a NULL test, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: add bulk-read facility, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: add no_chk_data_crc mount option, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: improve znode splitting rules, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: check data CRC when in error state, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: use bit-fields when possible, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: correct key comparison, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: fix races in bit-fields, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: fix commentary, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: update dbg_dump_inode, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: correct comment for commit_on_unmount, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: commit on sync_fs, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: allow for sync_fs when read-only, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: improve garbage collection, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: fix bulk-read handling uptodate pages, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: add more debugging messages for LPT, Artem Bityutskiy, (Tue Sep 30, 2:19 am)
[PATCH] UBIFS: correct condition to eliminate unecessary a ..., Artem Bityutskiy, (Tue Sep 30, 2:19 am)