Whamcloud - gitweb
Branch HEAD
[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 #ifndef __KERNEL__
16 /* Kludge here, define some functions and macros needed by liblustre -jay */
17 static inline void page_cache_get(struct page *page)
18 {
19 }
20
21 static inline void page_cache_release(struct page *page)
22 {
23 }
24
25 #define READ    0
26 #define WRITE   1
27
28 #endif /* ifndef __KERNEL__ */
29
30 #endif