xiaoxiang781216 commented on pull request #1577: URL: https://github.com/apache/incubator-nuttx/pull/1577#issuecomment-678145968
> @xiaoxiang781216 would you please provide more information on how this works and mechanism by which it saves memory? > I already describe the case in the commit message: if the buffer isn't multipled by erase size, FTL layer has to allocate a temporary buffer to avoid losing the data outside the updating region: https://github.com/apache/incubator-nuttx/blob/master/drivers/mtd/ftl.c#L378 Basically, the action done by FTL layer is moved to rwbuffer layer, and then we can reuse the buffer in rwbuffer instead. > @acassis shall we ask Ken Pettit, to have a look? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org