On 9/22/20 6:21 AM, Julia Lawall wrote:
From: kernel test robot <[email protected]>fs/btrfs/send.c:3854:8-15: WARNING opportunity for kmemdup Use kmemdup rather than duplicating its implementation Generated by: scripts/coccinelle/api/memdup.cocci Fixes: 28314eb24e6c ("btrfs: send, recompute reference path after orphanization of a directory") Signed-off-by: kernel test robot <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
Reviewed-by: Josef Bacik <[email protected]> Thanks, Josef

