diff options
Diffstat (limited to 'misc/e4defrag.c')
-rw-r--r-- | misc/e4defrag.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 99bc2cd7..e3011d7c 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -195,10 +195,6 @@ static struct frag_statistic_ino frag_rank[SHOW_FRAG_FILES]; #error posix_fadvise not available! #endif -#ifndef HAVE_FALLOCATE64 -#error fallocate64 not available! -#endif /* ! HAVE_FALLOCATE64 */ - /* * get_mount_point() - Get device's mount point. * @@ -1559,7 +1555,7 @@ static int file_defrag(const char *file, const struct stat64 *buf, /* Allocate space for donor inode */ orig_group_tmp = orig_group_head; do { - ret = fallocate64(donor_fd, 0, + ret = fallocate(donor_fd, 0, (ext2_loff_t)orig_group_tmp->start->data.logical * block_size, (ext2_loff_t)orig_group_tmp->len * block_size); if (ret < 0) { |