mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
btrfs: send: make fs_path_len() inline and constify its argument
[ Upstream commit 920e8ee2bf
]
The helper function fs_path_len() is trivial and doesn't need to change
its path argument, so make it inline and constify the argument.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f3aae5fd7
commit
0852c97fec
|
@ -478,7 +478,7 @@ static void fs_path_free(struct fs_path *p)
|
|||
kfree(p);
|
||||
}
|
||||
|
||||
static int fs_path_len(struct fs_path *p)
|
||||
static inline int fs_path_len(const struct fs_path *p)
|
||||
{
|
||||
return p->end - p->start;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user