OSDN Git Service

ubifs: lpt: Fix wrong pnode number range in comment
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 14 May 2018 08:18:19 +0000 (10:18 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 7 Jun 2018 13:53:15 +0000 (15:53 +0200)
commite1db654d8e326173a1c1a0194185250340cab03c
tree591e57fe2e3a25945883cd26d6eec275cbe97798
parent28e5dfd84239f1ce332a39cb1055d5debf611303
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>
fs/ubifs/lpt_commit.c