X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdecho%2Fecho_internal.h;h=62a7a59cd6a389c59b79adfcd67f3fba1b85d02a;hp=c45f0c6d0ac039ffbfc3bafbe1ac455d8a3c2713;hb=f4ea7b630b8adc9856ee67c6d16549f36e14efd1;hpb=fbf5870b9848929d352460f1f005b79c0b5ccc5a diff --git a/lustre/obdecho/echo_internal.h b/lustre/obdecho/echo_internal.h index c45f0c6..62a7a59 100644 --- a/lustre/obdecho/echo_internal.h +++ b/lustre/obdecho/echo_internal.h @@ -1,5 +1,36 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: +/* + * GPL HEADER START + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 only, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License version 2 for more details (a copy is included + * in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU General Public License + * version 2 along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA + * + * GPL HEADER END + */ +/* + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. + * Use is subject to license terms. + * + * Copyright (c) 2012, Whamcloud, Inc. + */ +/* + * This file is part of Lustre, http://www.lustre.org/ + * Lustre is a trademark of Sun Microsystems, Inc. + * + * lustre/obdecho/echo_internal.h */ #ifndef _ECHO_INTERNAL_H @@ -12,7 +43,13 @@ /* block size to use for data verification */ #define OBD_ECHO_BLOCK_SIZE (4<<10) -#ifndef __KERNEL__ +#ifdef __KERNEL__ +# ifdef HAVE_SERVER_SUPPORT +extern struct obd_ops echo_obd_ops; +int echo_persistent_pages_init(void); +void echo_persistent_pages_fini(void); +# endif +#else /* ! __KERNEL__ */ /* Kludge here, define some functions and macros needed by liblustre -jay */ static inline void page_cache_get(struct page *page) { @@ -25,6 +62,6 @@ static inline void page_cache_release(struct page *page) #define READ 0 #define WRITE 1 -#endif /* ifndef __KERNEL__ */ +#endif /* ifdef __KERNEL__ */ #endif