summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2015-02-09 15:51:28 +0100
committerJeremy Allison <jra@samba.org>2015-03-09 21:27:07 +0100
commit3787119eb8d85d122badb22b3bcc15ed5c32765d (patch)
tree26865f4d73badeae46551d10565ffb80d02791cb
parentf5d0204bfa1eb641fe7697613c1f773b6a7e65de (diff)
downloadsamba-3787119eb8d85d122badb22b3bcc15ed5c32765d.tar.gz
samba-3787119eb8d85d122badb22b3bcc15ed5c32765d.tar.xz
samba-3787119eb8d85d122badb22b3bcc15ed5c32765d.zip
lib/system: remove useless HAVE_LINUX_FALLOCATE64 logic
Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/lib/system.c4
1 files changed, 1 insertions, 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;