Re: [PATCH v2] Btrfs: use correct args for kcalloc in btrfsic_read_block

2018-09-10 Thread David Sterba
On Sat, Sep 08, 2018 at 04:41:40AM +0800, Liu Bo wrote: > kcalloc is defined as > kcalloc(size_t n, size_t size, gfp_t flags) > > Although this won't cause problems in practice, btrfsic_read_block() > has switched n with size. > > This updates btrfsic_read_block() to be correct in using kcalloc.

[PATCH v2] Btrfs: use correct args for kcalloc in btrfsic_read_block

2018-09-07 Thread Liu Bo
kcalloc is defined as kcalloc(size_t n, size_t size, gfp_t flags) Although this won't cause problems in practice, btrfsic_read_block() has switched n with size. This updates btrfsic_read_block() to be correct in using kcalloc. Reviewed-by: Omar Sandoval Signed-off-by: Liu Bo --- v2: use