]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
btrfs: send: use kvmalloc in iterate_dir_item
authorDavid Sterba <dsterba@suse.com>
Wed, 31 May 2017 16:40:02 +0000 (18:40 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:02 +0000 (18:26 +0200)
commitf11f74416ae6e63a6d6db9c5b22666a0aa57b881
treef220aaf3c06ce30e262b80dd1073f256b34aa3e6
parent818e010bf9d02b144569898506995bcff8918875
btrfs: send: use kvmalloc in iterate_dir_item

We use a growing buffer for xattrs larger than a page size, at some
point vmalloc is unconditionally used for larger buffers. We can still
try to avoid it using the kvmalloc helper.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c