From: Michal Nazarewicz Date: Mon, 15 Mar 2010 20:38:31 +0000 (+0100) Subject: USB: f_mass_storage: dynamic buffers for better alignment X-Git-Tag: v2.6.35-rc1~471^2~205 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae86e8adb3bbf5256eebe76500cf7254365753c;p=pandora-kernel.git USB: f_mass_storage: dynamic buffers for better alignment "Static" buffers in fsg_buffhd structure (ie. fields which are arrays rather then pointers to dynamically allocated memory) are not aligned to any "big" power of two which may lead to poor DMA performance (copying "by hand" of head or tail) or no DMA at all even if otherwise hardware supports it. Therefore, this patch makes mass storage function use kmalloc()ed buffers which are (because of their size) page aligned (which should be enough for any hardware). Signed-off-by: Michal Nazarewicz Cc: Kyungmin Park Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed