diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-26 19:55:21 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-26 19:55:21 +0200 |
commit | ce163918cd330158eb1a4c2a8fddec6b2e7d6d74 (patch) | |
tree | 9ad21d496d2f0bb179d32fde00558a6e898b0a7b /fs/notify | |
parent | fsnotify: switch send_to_group() and ->handle_event to const struct qstr * (diff) | |
download | linux-ce163918cd330158eb1a4c2a8fddec6b2e7d6d74.tar.xz linux-ce163918cd330158eb1a4c2a8fddec6b2e7d6d74.zip |
inotify_handle_event(): don't bother with strlen()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index e87f012cbff7..7e8b131029f8 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; } |