mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
Don't use mlockall()
We're hitting -ENOMEM while running fsck - we appear to need memory overcommit, which mlockall() disables.
This commit is contained in:
parent
f39f0bde78
commit
c1dcd67f7d
@ -106,8 +106,6 @@ static void sched_init(void)
|
|||||||
{
|
{
|
||||||
struct task_struct *p = malloc(sizeof(*p));
|
struct task_struct *p = malloc(sizeof(*p));
|
||||||
|
|
||||||
mlockall(MCL_CURRENT|MCL_FUTURE);
|
|
||||||
|
|
||||||
memset(p, 0, sizeof(*p));
|
memset(p, 0, sizeof(*p));
|
||||||
|
|
||||||
p->state = TASK_RUNNING;
|
p->state = TASK_RUNNING;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user