s3-includes: move readahead prototype to its only user.
authorGünther Deschner <gd@samba.org>
Wed, 13 Apr 2011 22:52:45 +0000 (00:52 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 14 Apr 2011 10:12:47 +0000 (12:12 +0200)
Guenther

source3/include/includes.h
source3/modules/vfs_readahead.c

index 5d6e554ede258ee9d81b08f027214fc8157b35ad..452464b1ce4917f0e5a8902e71a84ed7c4e367c7 100644 (file)
@@ -672,10 +672,6 @@ char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATT
 #define XATTR_REPLACE 0x2       /* set value, fail if attr does not exist */
 #endif
 
-#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL)
-ssize_t readahead(int fd, off64_t offset, size_t count);
-#endif
-
 #ifdef TRUE
 #undef TRUE
 #endif
index b9dbece94e08629660a8ea4cd0167c5361f212cd..22f7f7035545637328f1ba2991a3b80dbf05e933 100644 (file)
 #include "system/filesys.h"
 #include "smbd/smbd.h"
 
+#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL)
+ssize_t readahead(int fd, off64_t offset, size_t count);
+#endif
+
 struct readahead_data {
        SMB_OFF_T off_bound;
        SMB_OFF_T len;