Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit cb334fb

Browse files
luisgerhorstalex
authored andcommitted
Rename FileSystemRegistration to Registration
1 parent b9207f1 commit cb334fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/filesystem.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ use crate::c_types;
99
use crate::error;
1010
use 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 },

0 commit comments

Comments
 (0)