]> Git Repo - linux.git/commitdiff
inotify_handle_event(): don't bother with strlen()
authorAl Viro <[email protected]>
Fri, 26 Apr 2019 17:55:21 +0000 (13:55 -0400)
committerAl Viro <[email protected]>
Fri, 26 Apr 2019 17:55:21 +0000 (13:55 -0400)
Signed-off-by: Al Viro <[email protected]>
fs/notify/inotify/inotify_fsnotify.c

index e87f012cbff725cab7c08ed7d1c034bed3df6a4d..7e8b131029f888265d6ad883deb6bf4e9ab846f3 100644 (file)
@@ -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;
        }
 
This page took 0.058451 seconds and 4 git commands to generate.