]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Drop mlockall()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 19 Dec 2023 04:21:43 +0000 (23:21 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 19 Dec 2023 04:21:43 +0000 (23:21 -0500)
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>
bcachefs.c

index b209f63c589d1e4c7020353f89a179bc7b444ae0..4efe29edaad25c0b3fb96865e0a5f4907b3f1d55 100644 (file)
@@ -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];