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>
This commit is contained in:
Kent Overstreet 2023-12-18 23:21:43 -05:00
parent f76d246fff
commit e9df26f9c9

View File

@ -187,8 +187,6 @@ static int subvolume_cmds(int argc, char *argv[])
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
/* we don't want to swap */
mlockall(MCL_FUTURE);
raid_init(); raid_init();
full_cmd = argv[0]; full_cmd = argv[0];