From c130b18ee769fb1fe70de459a20393c24676dbd6 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Tue, 18 Jul 2023 16:54:44 +0200 Subject: [PATCH] Fix fmap typo and remove warning. --- src/scheme/user.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/scheme/user.rs b/src/scheme/user.rs index 78e42bba..cd13c362 100644 --- a/src/scheme/user.rs +++ b/src/scheme/user.rs @@ -428,9 +428,6 @@ impl UserInner { if map.address % PAGE_SIZE != 0 { return Err(Error::new(EINVAL)); } - if map.size % PAGE_SIZE != 0 { - log::warn!("fmap passed length {:#0x} instead of {:#0x}", map.size, map.size.next_multiple_of(PAGE_SIZE)); - } let (pid, uid, gid, context_weak, desc) = { let context_lock = context::current()?; @@ -459,7 +456,7 @@ impl UserInner { flags: map.flags, }; - let address = self.copy_and_capture_tail(&aligned_size_map)?; + let address = self.copy_and_capture_tail(map)?; let id = self.next_id(); -- GitLab