resource-optimizer: Remove unused includes 36/287336/1
authorSangYoun Kwak <sy.kwak@samsung.com>
Fri, 27 Jan 2023 02:04:02 +0000 (11:04 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 27 Jan 2023 02:04:02 +0000 (11:04 +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>
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 cde73aa..5c92699 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 e337020..1ad966d 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 e0a1031..9b8d5c9 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 8380c6a..1d0d0cd 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 18dfe87..f6b0e59 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