From e9df26f9c9a9188ffb232a4883206a13cc710912 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 18 Dec 2023 23:21:43 -0500 Subject: [PATCH] Drop mlockall() now that we have - shrinkers running in the background via a thread - run_shrinkers() considering swap usage this can probably be safely dropped - and it causes problems when running as non root, so let's do so. Signed-off-by: Kent Overstreet --- bcachefs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bcachefs.c b/bcachefs.c index b209f63c..4efe29ed 100644 --- a/bcachefs.c +++ b/bcachefs.c @@ -187,8 +187,6 @@ static int subvolume_cmds(int argc, char *argv[]) int main(int argc, char *argv[]) { - /* we don't want to swap */ - mlockall(MCL_FUTURE); raid_init(); full_cmd = argv[0];