From 3787119eb8d85d122badb22b3bcc15ed5c32765d Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 9 Feb 2015 15:51:28 +0100 Subject: lib/system: remove useless HAVE_LINUX_FALLOCATE64 logic Signed-off-by: David Disseldorp Reviewed-by: Jeremy Allison --- source3/lib/system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/lib/system.c b/source3/lib/system.c index 7531d771ce..4f3e214a54 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -480,7 +480,7 @@ int sys_posix_fallocate(int fd, off_t offset, off_t len) int sys_fallocate(int fd, enum vfs_fallocate_mode mode, off_t offset, off_t len) { -#if defined(HAVE_LINUX_FALLOCATE64) || defined(HAVE_LINUX_FALLOCATE) +#if defined(HAVE_LINUX_FALLOCATE) int lmode; switch (mode) { case VFS_FALLOCATE_EXTEND_SIZE: @@ -493,9 +493,7 @@ int sys_fallocate(int fd, enum vfs_fallocate_mode mode, off_t offset, off_t len) errno = EINVAL; return -1; } -#if defined(HAVE_LINUX_FALLOCATE) return fallocate(fd, lmode, offset, len); -#endif #else /* TODO - plumb in fallocate from other filesysetms like VXFS etc. JRA. */ errno = ENOSYS; -- cgit