diff options
author | Kai Song <songkai01@inspur.com> | 2021-10-03 16:06:56 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-10-26 19:08:05 +0200 |
commit | 64259baa396f185cdb44eeb9432fd9b85b178a9a (patch) | |
tree | 474526dfade12a39c839c4ccb7405987f80ba9b9 /fs/btrfs/tree-log.c | |
parent | 0cf9b244e7db173bdb0cffed0253fea808f7f4e6 (diff) | |
download | lwn-64259baa396f185cdb44eeb9432fd9b85b178a9a.tar.gz lwn-64259baa396f185cdb44eeb9432fd9b85b178a9a.zip |
btrfs: zoned: use kmemdup() to replace kmalloc + memcpy
Fix memdup.cocci warning:
fs/btrfs/zoned.c:1198:23-30: WARNING opportunity for kmemdup
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Kai Song <songkai01@inspur.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions