summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-18 23:21:43 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-18 23:21:43 -0500
commite9df26f9c9a9188ffb232a4883206a13cc710912 (patch)
tree5f1cf04b66a7f3976f5d675fdad353b2ff736b68
parentf76d246fff1c3c5b091fb2b910067d893620dc5e (diff)
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 <kent.overstreet@linux.dev>
-rw-r--r--bcachefs.c2
1 files changed, 0 insertions, 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];