Whamcloud - gitweb
LU-1214 ptlrpc: splits server-side connection/bulkIO/recovery
[fs/lustre-release.git] / lustre / obdecho / echo_internal.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4
5 #ifndef _ECHO_INTERNAL_H
6 #define _ECHO_INTERNAL_H
7
8 /* The persistent object (i.e. actually stores stuff!) */
9 #define ECHO_PERSISTENT_OBJID    1ULL
10 #define ECHO_PERSISTENT_SIZE     ((__u64)(1<<20))
11
12 /* block size to use for data verification */
13 #define OBD_ECHO_BLOCK_SIZE     (4<<10)
14
15 #ifdef __KERNEL__
16 # ifdef HAVE_SERVER_SUPPORT
17 extern struct obd_ops echo_obd_ops;
18 int echo_persistent_pages_init(void);
19 void echo_persistent_pages_fini(void);
20 # endif
21 #else /* ! __KERNEL__ */
22 /* Kludge here, define some functions and macros needed by liblustre -jay */
23 static inline void page_cache_get(struct page *page)
24 {
25 }
26
27 static inline void page_cache_release(struct page *page)
28 {
29 }
30
31 #define READ    0
32 #define WRITE   1
33
34 #endif /* ifdef __KERNEL__ */
35
36 #endif