This repository was archived by the owner on Mar 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ use crate::c_types;
9
9
use crate :: error;
10
10
use crate :: types:: CStr ;
11
11
12
- pub struct FileSystemRegistration < T : FileSystem > {
12
+ pub struct Registration < T : FileSystem > {
13
13
_phantom : marker:: PhantomData < T > ,
14
14
ptr : Box < bindings:: file_system_type > ,
15
15
}
16
16
17
- impl < T : FileSystem > Drop for FileSystemRegistration < T > {
17
+ impl < T : FileSystem > Drop for Registration < T > {
18
18
fn drop ( & mut self ) {
19
19
unsafe { bindings:: unregister_filesystem ( & mut * self . ptr ) } ;
20
20
}
@@ -56,8 +56,8 @@ extern "C" fn mount_callback<T: FileSystem>(
56
56
unsafe { bindings:: mount_nodev ( fs_type, flags, data, Some ( fill_super_callback :: < T > ) ) }
57
57
}
58
58
59
- pub fn register < T : FileSystem > ( ) -> error:: KernelResult < FileSystemRegistration < T > > {
60
- let mut fs_registration = FileSystemRegistration {
59
+ pub fn register < T : FileSystem > ( ) -> error:: KernelResult < Registration < T > > {
60
+ let mut fs_registration = Registration {
61
61
ptr : Box :: new ( bindings:: file_system_type {
62
62
name : T :: NAME . as_ptr ( ) as * const i8 ,
63
63
owner : unsafe { & mut bindings:: __this_module } ,
You can’t perform that action at this time.
0 commit comments