diff options
author | Günther Deschner <gd@samba.org> | 2011-04-14 00:52:45 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-04-14 12:12:47 +0200 |
commit | daea6a4b8cf48c96718d6f757d01c430d1811446 (patch) | |
tree | f10ec0a4fc63c1d8281d376c23dd68cc29c51165 | |
parent | 15d6c7070770b3146c510996ab24afbdf8034ee8 (diff) | |
download | samba-daea6a4b8cf48c96718d6f757d01c430d1811446.tar.gz samba-daea6a4b8cf48c96718d6f757d01c430d1811446.tar.bz2 samba-daea6a4b8cf48c96718d6f757d01c430d1811446.zip |
s3-includes: move readahead prototype to its only user.
Guenther
-rw-r--r-- | source3/include/includes.h | 4 | ||||
-rw-r--r-- | source3/modules/vfs_readahead.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 5d6e554ede..452464b1ce 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -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 diff --git a/source3/modules/vfs_readahead.c b/source3/modules/vfs_readahead.c index b9dbece94e..22f7f70355 100644 --- a/source3/modules/vfs_readahead.c +++ b/source3/modules/vfs_readahead.c @@ -19,6 +19,10 @@ #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; |