Skip to content

Commit 41c73ef

Browse files
committed
[mistos][starnix][fs] BootFs small cleanup
Change-Id: I60e5cb2fba87461a85376073df309d0b5e742623
1 parent ac38f87 commit 41c73ef

File tree

1 file changed

+2
-5
lines changed
  • vendor/misttech/zircon/kernel/lib/starnix/kernel/fs/mistos

1 file changed

+2
-5
lines changed

vendor/misttech/zircon/kernel/lib/starnix/kernel/fs/mistos/bootfs.cc

+2-5
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ScratchAllocator {
6565
return *this;
6666
}
6767

68-
explicit Holder(size_t size) {
68+
Holder(size_t size) {
6969
fbl::RefPtr<VmObjectPaged> vmo;
7070
uint64_t aligned_size;
7171
zx_status_t status = VmObject::RoundSize(size, &aligned_size);
@@ -95,18 +95,16 @@ class ScratchAllocator {
9595
mapping_ = ktl::move(map_result->mapping);
9696
}
9797

98-
// zbitl::View::CopyStorageItem calls this get the scratch memory.
98+
// zbitl::View::CopyStorageItem calls this to get the scratch memory.
9999
void* get() const { return reinterpret_cast<void*>(mapping_->base_locking()); }
100100

101101
~Holder() {
102102
if (mapping_) {
103103
mapping_->Destroy();
104-
// pinned_memory_'s destructor will un-pin the pages just unmapped.
105104
}
106105
}
107106

108107
private:
109-
// zx::unowned_vmar vmar_;
110108
PinnedVmObject pinned_vmo_;
111109
fbl::RefPtr<VmMapping> mapping_;
112110
};
@@ -126,7 +124,6 @@ class ScratchAllocator {
126124
vprintf(fmt, args);
127125
va_end(args);
128126
});
129-
// zx_process_exit(-1);
130127
ZX_PANIC("");
131128
}
132129

0 commit comments

Comments
 (0)