Re: [PATCH v2] Btrfs: remove unneeded allocation in load_free_space_cache()

2011-01-19 Thread Josef Bacik
On Wed, Jan 19, 2011 at 06:58:37PM +0200, Ilya Dryomov wrote: > I messed up size argument of kzalloc() and consequently memcpy(). Here > is an updated version. > > > The checksums array is unused, remove it. We only need disk_crcs array > to verify checksums. > > There is no need to allocate f

[PATCH v2] Btrfs: remove unneeded allocation in load_free_space_cache()

2011-01-19 Thread Ilya Dryomov
I messed up size argument of kzalloc() and consequently memcpy(). Here is an updated version. The checksums array is unused, remove it. We only need disk_crcs array to verify checksums. There is no need to allocate first_page_offset bytes for disk_crcs array. It's enough to allocate (sizeof(u