projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e43e9c3
)
inotify_handle_event(): don't bother with strlen()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 26 Apr 2019 17:55:21 +0000
(13:55 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 26 Apr 2019 17:55:21 +0000
(13:55 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/notify/inotify/inotify_fsnotify.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/notify/inotify/inotify_fsnotify.c
b/fs/notify/inotify/inotify_fsnotify.c
index e87f012cbff725cab7c08ed7d1c034bed3df6a4d..7e8b131029f888265d6ad883deb6bf4e9ab846f3 100644
(file)
--- 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;
}