commit | cc9d0fdd302cf997607055e0a8b5559509cba766 | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Fri Jan 27 10:29:59 2017 -0800 |
committer | Jerry Zhang <zhangjerry@google.com> | Thu Feb 02 12:38:00 2017 -0800 |
tree | 9dd0c4129717288a07246f23c6492fcb5a6daad1 | |
parent | f41c781cf4500cb0a8aae017f0c802c7b6f52f05 [diff] |
Make Mtp FFS allocations per session rather than per file Workloads that send a large number of small files could repeatedly allocate and free the buffer, causing fragmentation and eventually running out of allocable memory. Instead have the allocation be once per MTP session, and retry with smaller buffers if it fails initially. Bug: 34741015 Bug: 34822471 Test: Transfer files via MTP Change-Id: I775376076d3a0c26765b211100830ea0c08450ef