Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fsnotify: make dnotify_fsnotify_ops const

Make this const as it is never modified.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Bhumika Goyal and committed by
Jan Kara
c9ea9df3 def12ec5

+1 -1
+1 -1
fs/notify/dnotify/dnotify.c
··· 133 133 kmem_cache_free(dnotify_mark_cache, dn_mark); 134 134 } 135 135 136 - static struct fsnotify_ops dnotify_fsnotify_ops = { 136 + static const struct fsnotify_ops dnotify_fsnotify_ops = { 137 137 .handle_event = dnotify_handle_event, 138 138 .free_mark = dnotify_free_mark, 139 139 };