@@ -73,7 +73,7 @@ static struct fsnotify_event *get_one_event(struct fsnotify_group *group,
73
73
}
74
74
75
75
static int create_fd (struct fsnotify_group * group ,
76
- struct fanotify_event_info * event ,
76
+ struct fanotify_event * event ,
77
77
struct file * * file )
78
78
{
79
79
int client_fd ;
@@ -120,13 +120,13 @@ static int fill_event_metadata(struct fsnotify_group *group,
120
120
struct file * * file )
121
121
{
122
122
int ret = 0 ;
123
- struct fanotify_event_info * event ;
123
+ struct fanotify_event * event ;
124
124
125
125
pr_debug ("%s: group=%p metadata=%p event=%p\n" , __func__ ,
126
126
group , metadata , fsn_event );
127
127
128
128
* file = NULL ;
129
- event = container_of (fsn_event , struct fanotify_event_info , fse );
129
+ event = container_of (fsn_event , struct fanotify_event , fse );
130
130
metadata -> event_len = FAN_EVENT_METADATA_LEN ;
131
131
metadata -> metadata_len = FAN_EVENT_METADATA_LEN ;
132
132
metadata -> vers = FANOTIFY_METADATA_VERSION ;
@@ -144,10 +144,10 @@ static int fill_event_metadata(struct fsnotify_group *group,
144
144
return ret ;
145
145
}
146
146
147
- static struct fanotify_perm_event_info * dequeue_event (
147
+ static struct fanotify_perm_event * dequeue_event (
148
148
struct fsnotify_group * group , int fd )
149
149
{
150
- struct fanotify_perm_event_info * event , * return_e = NULL ;
150
+ struct fanotify_perm_event * event , * return_e = NULL ;
151
151
152
152
spin_lock (& group -> notification_lock );
153
153
list_for_each_entry (event , & group -> fanotify_data .access_list ,
@@ -169,7 +169,7 @@ static struct fanotify_perm_event_info *dequeue_event(
169
169
static int process_access_response (struct fsnotify_group * group ,
170
170
struct fanotify_response * response_struct )
171
171
{
172
- struct fanotify_perm_event_info * event ;
172
+ struct fanotify_perm_event * event ;
173
173
int fd = response_struct -> fd ;
174
174
int response = response_struct -> response ;
175
175
@@ -370,7 +370,7 @@ static ssize_t fanotify_write(struct file *file, const char __user *buf, size_t
370
370
static int fanotify_release (struct inode * ignored , struct file * file )
371
371
{
372
372
struct fsnotify_group * group = file -> private_data ;
373
- struct fanotify_perm_event_info * event , * next ;
373
+ struct fanotify_perm_event * event , * next ;
374
374
struct fsnotify_event * fsn_event ;
375
375
376
376
/*
@@ -688,7 +688,7 @@ SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags)
688
688
struct fsnotify_group * group ;
689
689
int f_flags , fd ;
690
690
struct user_struct * user ;
691
- struct fanotify_event_info * oevent ;
691
+ struct fanotify_event * oevent ;
692
692
693
693
pr_debug ("%s: flags=%x event_f_flags=%x\n" ,
694
694
__func__ , flags , event_f_flags );
@@ -955,10 +955,10 @@ static int __init fanotify_user_setup(void)
955
955
956
956
fanotify_mark_cache = KMEM_CACHE (fsnotify_mark ,
957
957
SLAB_PANIC |SLAB_ACCOUNT );
958
- fanotify_event_cachep = KMEM_CACHE (fanotify_event_info , SLAB_PANIC );
958
+ fanotify_event_cachep = KMEM_CACHE (fanotify_event , SLAB_PANIC );
959
959
if (IS_ENABLED (CONFIG_FANOTIFY_ACCESS_PERMISSIONS )) {
960
960
fanotify_perm_event_cachep =
961
- KMEM_CACHE (fanotify_perm_event_info , SLAB_PANIC );
961
+ KMEM_CACHE (fanotify_perm_event , SLAB_PANIC );
962
962
}
963
963
964
964
return 0 ;
0 commit comments