1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

Kernel: Remove KBufferBuilder's can_expand restriction

KBufferBuilder is always allowed to expand if it wants to. This
restriction was added a long time ago when it was unsafe to allocate
VM while generating ProcFS contents.
This commit is contained in:
Andreas Kling 2021-07-20 15:16:25 +02:00
parent fef835de7f
commit f85b94e6d4
2 changed files with 2 additions and 6 deletions

View file

@ -16,7 +16,7 @@ class KBufferBuilder {
public:
using OutputType = KBuffer;
explicit KBufferBuilder(bool can_expand = false);
KBufferBuilder();
KBufferBuilder(KBufferBuilder&&) = default;
~KBufferBuilder() = default;
@ -50,7 +50,6 @@ private:
RefPtr<KBufferImpl> m_buffer;
size_t m_size { 0 };
bool m_can_expand { false };
};
}