Skip to content

Commit e1db654

Browse files
saschahauerrichardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 28e5dfd commit e1db654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ubifs/lpt_commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static struct ubifs_pnode *next_pnode_to_dirty(struct ubifs_info *c,
619619
/**
620620
* pnode_lookup - lookup a pnode in the LPT.
621621
* @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))
623623
*
624624
* This function returns a pointer to the pnode on success or a negative
625625
* error code on failure.

0 commit comments

Comments
 (0)