diff --git a/hibernation-setup-tool.c b/hibernation-setup-tool.c index 830257f..add0c4f 100644 --- a/hibernation-setup-tool.c +++ b/hibernation-setup-tool.c @@ -960,6 +960,9 @@ static void spawn_and_wait(const char *program, int n_args, ...) static void perform_fs_specific_checks(const char *path) { + /* Not performing defragmentation for xfs file systems as xfs_fsr process is taking time for SKUs with larger RAM. + While it is good to have optimization, not ideal to have performance hit on the tool */ + if (is_file_on_fs(path, EXT4_SUPER_MAGIC) && is_exec_in_path("e4defrag")) { try_spawn_and_wait("e4defrag", 1, path); return; @@ -979,11 +982,6 @@ static void perform_fs_specific_checks(const char *path) try_spawn_and_wait("btrfs", 3, "filesystem", "defragment", path); return; } - - if (is_file_on_fs(path, XFS_SUPER_MAGIC) && is_exec_in_path("xfs_fsr")) { - try_spawn_and_wait("xfs_fsr", 2, "-v", path); - return; - } } bool is_kernel_version_at_least(const char *version)