@@ -281,44 +281,6 @@ static void update_inode_attr(struct dentry *dentry, struct inode *inode,
281
281
inode -> i_gid = attr -> gid ;
282
282
}
283
283
284
- static void update_gid (struct eventfs_inode * ei , kgid_t gid , int level )
285
- {
286
- struct eventfs_inode * ei_child ;
287
-
288
- /* at most we have events/system/event */
289
- if (WARN_ON_ONCE (level > 3 ))
290
- return ;
291
-
292
- ei -> attr .gid = gid ;
293
-
294
- if (ei -> entry_attrs ) {
295
- for (int i = 0 ; i < ei -> nr_entries ; i ++ ) {
296
- ei -> entry_attrs [i ].gid = gid ;
297
- }
298
- }
299
-
300
- /*
301
- * Only eventfs_inode with dentries are updated, make sure
302
- * all eventfs_inodes are updated. If one of the children
303
- * do not have a dentry, this function must traverse it.
304
- */
305
- list_for_each_entry_srcu (ei_child , & ei -> children , list ,
306
- srcu_read_lock_held (& eventfs_srcu )) {
307
- if (!ei_child -> dentry )
308
- update_gid (ei_child , gid , level + 1 );
309
- }
310
- }
311
-
312
- void eventfs_update_gid (struct dentry * dentry , kgid_t gid )
313
- {
314
- struct eventfs_inode * ei = dentry -> d_fsdata ;
315
- int idx ;
316
-
317
- idx = srcu_read_lock (& eventfs_srcu );
318
- update_gid (ei , gid , 0 );
319
- srcu_read_unlock (& eventfs_srcu , idx );
320
- }
321
-
322
284
/**
323
285
* create_file - create a file in the tracefs filesystem
324
286
* @name: the name of the file to create.
0 commit comments