summaryrefslogtreecommitdiff
path: root/fs/notify/dnotify
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-30 18:09:02 +0530
committerJan Kara <jack@suse.cz>2017-08-30 16:02:48 +0200
commitc9ea9df3032eff1c57853fdf3d54e276d63b4b4d (patch)
treea8b769c4725f41348b6af5c6a9af7dea6f97ae81 /fs/notify/dnotify
parentdef12ec59dd74f5b6ff013b874b1e558b1c22f50 (diff)
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>
Diffstat (limited to 'fs/notify/dnotify')
-rw-r--r--fs/notify/dnotify/dnotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c
index 2430a0415995..cba328315929 100644
--- a/fs/notify/dnotify/dnotify.c
+++ b/fs/notify/dnotify/dnotify.c
@@ -133,7 +133,7 @@ static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)
kmem_cache_free(dnotify_mark_cache, dn_mark);
}
-static struct fsnotify_ops dnotify_fsnotify_ops = {
+static const struct fsnotify_ops dnotify_fsnotify_ops = {
.handle_event = dnotify_handle_event,
.free_mark = dnotify_free_mark,
};