Lines 197-205
static struct frag_statistic_ino frag_rank[SHOW_FRAG_FILES];
Link Here
|
197 |
#error sync_file_range not available! |
197 |
#error sync_file_range not available! |
198 |
#endif /* ! HAVE_SYNC_FILE_RANGE */ |
198 |
#endif /* ! HAVE_SYNC_FILE_RANGE */ |
199 |
|
199 |
|
200 |
#ifndef HAVE_FALLOCATE64 |
200 |
#ifdef !defined(HAVE_FALLOCATE64) && !defined(HAVE_POSIX_FALLOCATE64) |
201 |
#error fallocate64 not available! |
201 |
#error neither fallocate64 nor posix_fallocate64 available! |
202 |
#endif /* ! HAVE_FALLOCATE64 */ |
202 |
#endif /* ! HAVE_FALLOCATE64 && ! HAVE_POSIX_FALLOCATE64 */ |
203 |
|
203 |
|
204 |
/* |
204 |
/* |
205 |
* get_mount_point() - Get device's mount point. |
205 |
* get_mount_point() - Get device's mount point. |
Lines 1552-1558
static int file_defrag(const char *file, const struct stat64 *buf,
Link Here
|
1552 |
/* Allocate space for donor inode */ |
1552 |
/* Allocate space for donor inode */ |
1553 |
orig_group_tmp = orig_group_head; |
1553 |
orig_group_tmp = orig_group_head; |
1554 |
do { |
1554 |
do { |
|
|
1555 |
#ifdef HAVE_FALLOCATE64 |
1555 |
ret = fallocate64(donor_fd, 0, |
1556 |
ret = fallocate64(donor_fd, 0, |
|
|
1557 |
#else /* HAVE_POSIX_FALLOCATE64 */ |
1558 |
ret = posix_fallocate64(donor_fd, |
1559 |
#endif |
1556 |
(loff_t)orig_group_tmp->start->data.logical * block_size, |
1560 |
(loff_t)orig_group_tmp->start->data.logical * block_size, |
1557 |
(loff_t)orig_group_tmp->len * block_size); |
1561 |
(loff_t)orig_group_tmp->len * block_size); |
1558 |
if (ret < 0) { |
1562 |
if (ret < 0) { |
1559 |
- |
|
|