@@ -228,13 +228,6 @@ static inline vfsuid_t make_vfsuid(struct user_namespace *mnt_userns,
228
228
return VFSUIDT_INIT (make_kuid (mnt_userns , uid ));
229
229
}
230
230
231
- static inline kuid_t mapped_kuid_fs (struct user_namespace * mnt_userns ,
232
- struct user_namespace * fs_userns ,
233
- kuid_t kuid )
234
- {
235
- return AS_KUIDT (make_vfsuid (mnt_userns , fs_userns , kuid ));
236
- }
237
-
238
231
/**
239
232
* make_vfsgid - map a filesystem kgid into a mnt_userns
240
233
* @mnt_userns: the mount's idmapping
@@ -273,13 +266,6 @@ static inline vfsgid_t make_vfsgid(struct user_namespace *mnt_userns,
273
266
return VFSGIDT_INIT (make_kgid (mnt_userns , gid ));
274
267
}
275
268
276
- static inline kgid_t mapped_kgid_fs (struct user_namespace * mnt_userns ,
277
- struct user_namespace * fs_userns ,
278
- kgid_t kgid )
279
- {
280
- return AS_KGIDT (make_vfsgid (mnt_userns , fs_userns , kgid ));
281
- }
282
-
283
269
/**
284
270
* from_vfsuid - map a vfsuid into the filesystem idmapping
285
271
* @mnt_userns: the mount's idmapping
@@ -307,33 +293,6 @@ static inline kuid_t from_vfsuid(struct user_namespace *mnt_userns,
307
293
return make_kuid (fs_userns , uid );
308
294
}
309
295
310
- /**
311
- * mapped_kuid_user - map a user kuid into a mnt_userns
312
- * @mnt_userns: the mount's idmapping
313
- * @fs_userns: the filesystem's idmapping
314
- * @kuid : kuid to be mapped
315
- *
316
- * Use the idmapping of @mnt_userns to remap a @kuid into @fs_userns. Use this
317
- * function when preparing a @kuid to be written to disk or inode.
318
- *
319
- * If no_idmapping() determines that this is not an idmapped mount we can
320
- * simply return @kuid unchanged.
321
- * If initial_idmapping() tells us that the filesystem is not mounted with an
322
- * idmapping we know the value of @kuid won't change when calling
323
- * make_kuid() so we can simply retrieve the value via KUIDT_INIT()
324
- * directly.
325
- *
326
- * Return: @kuid mapped according to @mnt_userns.
327
- * If @kuid has no mapping in either @mnt_userns or @fs_userns INVALID_UID is
328
- * returned.
329
- */
330
- static inline kuid_t mapped_kuid_user (struct user_namespace * mnt_userns ,
331
- struct user_namespace * fs_userns ,
332
- kuid_t kuid )
333
- {
334
- return from_vfsuid (mnt_userns , fs_userns , VFSUIDT_INIT (kuid ));
335
- }
336
-
337
296
/**
338
297
* vfsuid_has_fsmapping - check whether a vfsuid maps into the filesystem
339
298
* @mnt_userns: the mount's idmapping
@@ -399,33 +358,6 @@ static inline kgid_t from_vfsgid(struct user_namespace *mnt_userns,
399
358
return make_kgid (fs_userns , gid );
400
359
}
401
360
402
- /**
403
- * mapped_kgid_user - map a user kgid into a mnt_userns
404
- * @mnt_userns: the mount's idmapping
405
- * @fs_userns: the filesystem's idmapping
406
- * @kgid : kgid to be mapped
407
- *
408
- * Use the idmapping of @mnt_userns to remap a @kgid into @fs_userns. Use this
409
- * function when preparing a @kgid to be written to disk or inode.
410
- *
411
- * If no_idmapping() determines that this is not an idmapped mount we can
412
- * simply return @kgid unchanged.
413
- * If initial_idmapping() tells us that the filesystem is not mounted with an
414
- * idmapping we know the value of @kgid won't change when calling
415
- * make_kgid() so we can simply retrieve the value via KGIDT_INIT()
416
- * directly.
417
- *
418
- * Return: @kgid mapped according to @mnt_userns.
419
- * If @kgid has no mapping in either @mnt_userns or @fs_userns INVALID_GID is
420
- * returned.
421
- */
422
- static inline kgid_t mapped_kgid_user (struct user_namespace * mnt_userns ,
423
- struct user_namespace * fs_userns ,
424
- kgid_t kgid )
425
- {
426
- return from_vfsgid (mnt_userns , fs_userns , VFSGIDT_INIT (kgid ));
427
- }
428
-
429
361
/**
430
362
* vfsgid_has_fsmapping - check whether a vfsgid maps into the filesystem
431
363
* @mnt_userns: the mount's idmapping
0 commit comments