]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: send: always use fs_path_len() to determine a path's length
authorFilipe Manana <fdmanana@suse.com>
Wed, 5 Feb 2025 11:14:09 +0000 (11:14 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:45 +0000 (20:35 +0100)
commit1f63d4b610181c1f6add492c9c23f27818aff361
tree4dbe64bb98fdfe2bedf651f95875f6716e88b57f
parent920e8ee2bfcaf886fd8c0ad9df097a7dddfeb2d8
btrfs: send: always use fs_path_len() to determine a path's length

Several places are hardcoding the path length calculation instead of using
the helper fs_path_len() for that. Update all those places to instead use
fs_path_len().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c