From: Filipe Manana Date: Tue, 4 Feb 2025 16:41:01 +0000 (+0000) Subject: btrfs: send: make fs_path_len() inline and constify its argument X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=920e8ee2bfcaf886fd8c0ad9df097a7dddfeb2d8;p=linux.git 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- 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; }