projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75dfc5d
)
btrfs: send: make fs_path_len() inline and constify its argument
author
Filipe Manana
<fdmanana@suse.com>
Tue, 4 Feb 2025 16:41:01 +0000
(16:41 +0000)
committer
David Sterba
<dsterba@suse.com>
Tue, 18 Mar 2025 19:35:44 +0000
(20:35 +0100)
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>
fs/btrfs/send.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index
8de561f
..
4e998bf
100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-468,7
+468,7
@@
static void fs_path_free(struct fs_path *p)
kfree(p);
}
-static in
t fs_path_len(
struct fs_path *p)
+static in
line int fs_path_len(const
struct fs_path *p)
{
return p->end - p->start;
}