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;
99use crate :: error;
1010use crate :: types:: CStr ;
1111
12- pub struct FileSystemRegistration < T : FileSystem > {
12+ pub struct Registration < T : FileSystem > {
1313 _phantom : marker:: PhantomData < T > ,
1414 ptr : Box < bindings:: file_system_type > ,
1515}
1616
17- impl < T : FileSystem > Drop for FileSystemRegistration < T > {
17+ impl < T : FileSystem > Drop for Registration < T > {
1818 fn drop ( & mut self ) {
1919 unsafe { bindings:: unregister_filesystem ( & mut * self . ptr ) } ;
2020 }
@@ -56,8 +56,8 @@ extern "C" fn mount_callback<T: FileSystem>(
5656 unsafe { bindings:: mount_nodev ( fs_type, flags, data, Some ( fill_super_callback :: < T > ) ) }
5757}
5858
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 {
6161 ptr : Box :: new ( bindings:: file_system_type {
6262 name : T :: NAME . as_ptr ( ) as * const i8 ,
6363 owner : unsafe { & mut bindings:: __this_module } ,
You can’t perform that action at this time.
0 commit comments