File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ pub struct Mount {
8
8
mtx : Mtx ,
9
9
pad1 : [ u8 ; 0x8 ] ,
10
10
entry : TailQueueEntry < Self > ,
11
- pad2 : [ u8 ; 0x48 ] ,
11
+ pad2 : [ u8 ; 8 ] ,
12
+ fs : * mut Filesystem ,
13
+ pad3 : [ u8 ; 0x38 ] ,
12
14
flags : u64 ,
13
15
}
14
16
@@ -25,6 +27,10 @@ impl okf::mount::Mount<Kernel> for Mount {
25
27
& mut self . entry
26
28
}
27
29
30
+ fn fs ( & self ) -> * mut Filesystem {
31
+ self . fs
32
+ }
33
+
28
34
unsafe fn flags ( & self ) -> u64 {
29
35
self . flags
30
36
}
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ pub trait Mount<K: Kernel>: Sized {
18
18
/// [`Kernel::MOUNTLIST_MTX`] must be locked.
19
19
unsafe fn entry_mut ( & mut self ) -> & mut TailQueueEntry < Self > ;
20
20
21
+ /// Returns `mnt_vfc`.
22
+ fn fs ( & self ) -> * mut K :: Filesystem ;
23
+
21
24
/// Returns the value of `mnt_flag`.
22
25
///
23
26
/// # Safety
You can’t perform that action at this time.
0 commit comments