aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-05-14 04:18:19 -0400
committerRichard Weinberger <richard@nod.at>2018-06-07 09:53:15 -0400
commite1db654d8e326173a1c1a0194185250340cab03c (patch)
tree591e57fe2e3a25945883cd26d6eec275cbe97798
parent28e5dfd84239f1ce332a39cb1055d5debf611303 (diff)
ubifs: lpt: Fix wrong pnode number range in comment
The comment above pnode_lookup claims the range for the pnode number is from 0 to main_lebs - 1. This is wrong because every pnode has informations about UBIFS_LPT_FANOUT LEBs, thus the corrent range is 0 to to (main_lebs - 1) / UBIFS_LPT_FANOUT. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r--fs/ubifs/lpt_commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c
index 235654c2fe89..78da65b2fb85 100644
--- a/fs/ubifs/lpt_commit.c
+++ b/fs/ubifs/lpt_commit.c
@@ -619,7 +619,7 @@ static struct ubifs_pnode *next_pnode_to_dirty(struct ubifs_info *c,
619/** 619/**
620 * pnode_lookup - lookup a pnode in the LPT. 620 * pnode_lookup - lookup a pnode in the LPT.
621 * @c: UBIFS file-system description object 621 * @c: UBIFS file-system description object
622 * @i: pnode number (0 to main_lebs - 1) 622 * @i: pnode number (0 to (main_lebs - 1) / UBIFS_LPT_FANOUT))
623 * 623 *
624 * This function returns a pointer to the pnode on success or a negative 624 * This function returns a pointer to the pnode on success or a negative
625 * error code on failure. 625 * error code on failure.