summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-02-04 19:41:01 +0300
committerDavid Sterba <dsterba@suse.com>2025-03-18 22:35:44 +0300
commit920e8ee2bfcaf886fd8c0ad9df097a7dddfeb2d8 (patch)
treee7592c3085e4d5180b2deab9742edcb81d00f1a4
parent75dfc5d0cabb9dfb071583e1e30facee6a113227 (diff)
downloadlinux-920e8ee2bfcaf886fd8c0ad9df097a7dddfeb2d8.tar.xz
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>
-rw-r--r--fs/btrfs/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 8de561fb1390..4e998bf8d379 100644
--- 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 int fs_path_len(struct fs_path *p)
+static inline int fs_path_len(const struct fs_path *p)
{
return p->end - p->start;
}