Modify the userspace read/write usage location

This commit is contained in:
Chen Chengjun
2024-06-28 09:36:43 +08:00
committed by Tate, Hongliang Tian
parent af908c29cf
commit cd2b305fa8
14 changed files with 25 additions and 19 deletions

View File

@ -178,7 +178,7 @@ impl PreemptInfo {
}
}
fn incease_num_locks(&self) {
fn increase_num_locks(&self) {
self.num_locks.fetch_add(1, Relaxed);
}
@ -205,7 +205,7 @@ impl !Send for DisablePreemptGuard {}
impl DisablePreemptGuard {
fn new() -> Self {
PREEMPT_COUNT.incease_num_locks();
PREEMPT_COUNT.increase_num_locks();
Self { private: () }
}