提交 c9ea9df3 编写于 作者: B Bhumika Goyal 提交者: Jan Kara

fsnotify: make dnotify_fsnotify_ops const

Make this const as it is never modified.
Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 def12ec5
...@@ -133,7 +133,7 @@ static void dnotify_free_mark(struct fsnotify_mark *fsn_mark) ...@@ -133,7 +133,7 @@ static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)
kmem_cache_free(dnotify_mark_cache, dn_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, .handle_event = dnotify_handle_event,
.free_mark = dnotify_free_mark, .free_mark = dnotify_free_mark,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册