]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: allocate backref_ctx on stack in find_extent_clone
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 27 Jul 2021 21:17:31 +0000 (16:17 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:10 +0000 (13:19 +0200)
commitdce2815039061116c41da1db24b9282e6e5e1734
tree7606a139f8de49c09b2e521ae443f4ce7542579f
parentc853a5783ebe123847886d432354931874367292
btrfs: allocate backref_ctx on stack in find_extent_clone

Instead of using kmalloc() to allocate backref_ctx, allocate backref_ctx
on stack. The size is reasonably small.

sizeof(backref_ctx) = 48

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