From: Al Viro Date: Fri, 26 Apr 2019 17:55:21 +0000 (-0400) Subject: inotify_handle_event(): don't bother with strlen() X-Git-Tag: v5.2-rc1~142^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce163918cd330158eb1a4c2a8fddec6b2e7d6d74;p=thirdparty%2Fkernel%2Flinux.git inotify_handle_event(): don't bother with strlen() Signed-off-by: Al Viro --- diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index e87f012cbff72..7e8b131029f88 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c @@ -89,7 +89,7 @@ int inotify_handle_event(struct fsnotify_group *group, return 0; } if (file_name) { - len = strlen(file_name->name); + len = file_name->len; alloc_len += len + 1; }