USB: gadget: f_mass_storage: Flush writes after every 4 MB.
authorMike Lockwood <lockwood@android.com>
Fri, 12 Mar 2010 16:01:05 +0000 (11:01 -0500)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:06 +0000 (09:09 -0700)
commitf6205641334bf29e59de6cbe62de618d7ee339e6
tree6e56642e3ba50a6e2c971bfb6dafa4f1866e895c
parent0d511c44709dfbc32174e9ee66d446ea2eaaaaee
USB: gadget: f_mass_storage: Flush writes after every 4 MB.

This avoids excessive caching at the block level layer when copying large
files to the storage device.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_mass_storage_tmp.c