mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
btrfs: send: make fs_path_len() inline and constify its argument
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>
This commit is contained in:
parent
75dfc5d0ca
commit
920e8ee2bf
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,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…
Add table
Reference in a new issue