hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/fs/drop_caches.c
....@@ -9,6 +9,7 @@
99 #include <linux/writeback.h>
1010 #include <linux/sysctl.h>
1111 #include <linux/gfp.h>
12
+#include <linux/swap.h>
1213 #include "internal.h"
1314
1415 /* A global variable is a bit ugly, but it keeps the code simple */
....@@ -58,6 +59,7 @@
5859 static int stfu;
5960
6061 if (sysctl_drop_caches & 1) {
62
+ lru_add_drain_all();
6163 iterate_supers(drop_pagecache_sb, NULL);
6264 count_vm_event(DROP_PAGECACHE);
6365 }