fsnotify: Move ->free_mark callback to fsnotify_ops
Pointer to ->free_mark callback unnecessarily occupies one long in each fsnotify_mark although they are the same for all marks from one notification group. Move the callback pointer to fsnotify_ops. Reviewed-by: Miklos Szeredi <mszeredi@redhat.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -31,6 +31,7 @@ extern int inotify_handle_event(struct fsnotify_group *group,
|
||||
struct fsnotify_iter_info *iter_info);
|
||||
|
||||
extern const struct fsnotify_ops inotify_fsnotify_ops;
|
||||
extern struct kmem_cache *inotify_inode_mark_cachep;
|
||||
|
||||
#ifdef CONFIG_INOTIFY_USER
|
||||
static inline void dec_inotify_instances(struct ucounts *ucounts)
|
||||
|
Reference in New Issue
Block a user