Skip to content

Commit d3639f1

Browse files
committed
Format code
1 parent b0ffe88 commit d3639f1

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • lock-protocol/src/mm/page_table/node

lock-protocol/src/mm/page_table/node/entry.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,21 @@ impl<'a, 'rcu, C: PageTableConfig> Entry<'a, 'rcu, C> {
428428
&&& spt.wf()
429429
&&& res is Some
430430
&&& spt_do_not_change_except_modify_pte(spt, old(spt), self.pte.pte_paddr() as int)
431-
&&& spt_do_not_change_above_level(spt, old(spt), self.node.level_spec(&spt.alloc_model))
431+
&&& spt_do_not_change_above_level(
432+
spt,
433+
old(spt),
434+
self.node.level_spec(&spt.alloc_model),
435+
)
432436
&&& alloc_model_do_not_change_except_add_frame(spt, old(spt), res.unwrap().paddr())
433437
&&& res.unwrap().wf(&spt.alloc_model)
434438
&&& spt.i_ptes.value().contains_key(self.pte.pte_paddr() as int)
435439
&&& !old(spt).frames.value().contains_key(res.unwrap().paddr() as int)
436440
&&& spt.frames.value().contains_key(res.unwrap().paddr() as int)
437441
&&& !old(spt).alloc_model.meta_map.contains_key(res.unwrap().paddr() as int)
438442
&&& spt.alloc_model.meta_map.contains_key(res.unwrap().paddr() as int)
439-
&&& res.unwrap().level_spec(&spt.alloc_model) == self.node.level_spec(&spt.alloc_model) - 1
443+
&&& res.unwrap().level_spec(&spt.alloc_model) == self.node.level_spec(
444+
&spt.alloc_model,
445+
) - 1
440446
&&& spt.frames.value()[res.unwrap().paddr() as int].ancestor_chain
441447
== spt.frames.value()[self.node.paddr() as int].ancestor_chain.insert(
442448
self.node.level_spec(&spt.alloc_model) as int,
@@ -449,7 +455,7 @@ impl<'a, 'rcu, C: PageTableConfig> Entry<'a, 'rcu, C> {
449455
phantom: PhantomData,
450456
},
451457
)
452-
}
458+
},
453459
{
454460
if self.pte.is_present() {
455461
return None;

0 commit comments

Comments
 (0)