resource-optimizer: Remove unused includes
authorSangYoun Kwak <sy.kwak@samsung.com>
Fri, 27 Jan 2023 02:04:02 +0000 (11:04 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Jan 2023 03:05:29 +0000 (12:05 +0900)
Some unused includings in the source files of resource-optimizer were
removed.

Change-Id: Ice4dbd8fac7e6559ccde9ea3d0b4a6ae97462ab5
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
(cherry picked from commit 72d3e4f50016accfce996e3226e884af11d81050)

src/resource-optimizer/memory/compaction.c
src/resource-optimizer/memory/dedup.c
src/resource-optimizer/memory/swap/fileswap.c
src/resource-optimizer/memory/swap/swap.c
src/resource-optimizer/memory/swap/zswap.c

index cde73aabded4f17c774fa11cfaed20e92adb7ccf..5c926997107559619c70e266ec70f43c835946f6 100644 (file)
 #include <glib.h>
 #include <time.h>
 #include <unistd.h>
-#include <sys/time.h>
 #include <sys/types.h>
 
-#include <sys/syscall.h>
-
 #include "config-parser.h"
 #include "module.h"
 #include "macro.h"
index e3370201bc0fc88f645d981b163b55b48519317e..1ad966d8abba2d9135cda51e398b5595467cab5f 100644 (file)
@@ -24,7 +24,6 @@
 #include <trace.h>
 #include <stdlib.h>
 #include <sys/stat.h>
-#include <sys/vfs.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <memory-cgroup.h>
-#include <linux/loop.h>
 #include <fcntl.h>
 #include <string.h>
 #include <time.h>
 
 #include "macro.h"
-#include "util.h"
 #include "module.h"
-#include "module-data.h"
 #include "dedup-common.h"
-#include "config-parser.h"
 #include "notifier.h"
 #include "const.h"
 #include "file-helper.h"
index e0a103118478323d7812fb128513dadae0caf0a4..9b8d5c9c8cf4f5e5de2fc92a9ce46666ce96aff8 100644 (file)
 #include "module-data.h"
 #include "trace.h"
 #include "util.h"
-#include "file-helper.h"
 #include "procfs.h"
 #include "swap-common.h"
 #include "memory-cgroup.h"
 #include "config-parser.h"
 #include "lowmem.h"
-#include "losetup.h"
 
 #define FILESWAP_FULLNESS_RATIO        0.8
 #define DEFAULT_SWAP_FILE_SIZE MBYTE_TO_BYTE(30)
index 8380c6a2c2d773e9e6c163988f916508efa8e4e7..1d0d0cd1797b1df7fee9a9f46d0f0a071b0b20ea 100644 (file)
@@ -24,7 +24,6 @@
 #include <trace.h>
 #include <stdlib.h>
 #include <sys/stat.h>
-#include <sys/vfs.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include "module-data.h"
 #include "dbus-handler.h"
 #include "swap-common.h"
-#include "config-parser.h"
 #include "notifier.h"
 #include "procfs.h"
 #include "cgroup.h"
 #include "const.h"
-#include "file-helper.h"
 #include "proc-common.h"
-#include "proc-main.h"
 #include "util.h"
 #include "losetup.h"
 #include "init.h"
index 18dfe87da34b56d73c58977979e91492be3261cf..f6b0e5942d4f067fde0f3d4600a4eaad89a37f7f 100644 (file)
@@ -27,7 +27,6 @@
 #include "memory-cgroup.h"
 #include "config-parser.h"
 #include "lowmem.h"
-#include "losetup.h"
 
 #define DEFAULT_ZSWAP_POOL_RATIO (25)
 #define ZSWAP_FULLNESS_RATIO   0.8