Commit 6ad08ddd authored by Mohanlal Jangir's avatar Mohanlal Jangir Committed by David Woodhouse

mtd: inftl: fix fold chain block number

Signed-off-by: default avatarMohan Lal Jangir <mohanlaljangir@gmail.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent b4c8c8cf
...@@ -550,7 +550,7 @@ static inline u16 INFTL_findwriteunit(struct INFTLrecord *inftl, unsigned block) ...@@ -550,7 +550,7 @@ static inline u16 INFTL_findwriteunit(struct INFTLrecord *inftl, unsigned block)
* waiting to be picked up. We're going to have to fold * waiting to be picked up. We're going to have to fold
* a chain to make room. * a chain to make room.
*/ */
thisEUN = INFTL_makefreeblock(inftl, BLOCK_NIL); thisEUN = INFTL_makefreeblock(inftl, block);
/* /*
* Hopefully we free something, lets try again. * Hopefully we free something, lets try again.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment