aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/tnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c
index e0878a431b9c..d27fd918b9c9 100644
--- a/fs/ubifs/tnc.c
+++ b/fs/ubifs/tnc.c
@@ -1600,7 +1600,7 @@ out:
1600 * An enormous hole could cause bulk-read to encompass too many 1600 * An enormous hole could cause bulk-read to encompass too many
1601 * page cache pages, so limit the number here. 1601 * page cache pages, so limit the number here.
1602 */ 1602 */
1603 if (bu->blk_cnt >= UBIFS_MAX_BULK_READ) 1603 if (bu->blk_cnt > UBIFS_MAX_BULK_READ)
1604 bu->blk_cnt = UBIFS_MAX_BULK_READ; 1604 bu->blk_cnt = UBIFS_MAX_BULK_READ;
1605 /* 1605 /*
1606 * Ensure that bulk-read covers a whole number of page cache 1606 * Ensure that bulk-read covers a whole number of page cache