X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdfilter%2Ffilter_internal.h;h=d73a4687787ab38a51eb2c9403480177499cda7e;hp=6f2ac821b0eddf0663af1c3e72be0ae63f51f85b;hb=1317f6241b86e1fc90a4d2dc836e9a25eeaaeb04;hpb=5b31bd1b3c175172d68824fa60f237ca742e080d diff --git a/lustre/obdfilter/filter_internal.h b/lustre/obdfilter/filter_internal.h index 6f2ac82..d73a468 100644 --- a/lustre/obdfilter/filter_internal.h +++ b/lustre/obdfilter/filter_internal.h @@ -1,5 +1,37 @@ /* -*- 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, see [sun.com URL with a + * copy of GPLv2]. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + * + * GPL HEADER END + */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Use is subject to license terms. + */ +/* + * This file is part of Lustre, http://www.lustre.org/ + * Lustre is a trademark of Sun Microsystems, Inc. */ #ifndef _FILTER_INTERNAL_H @@ -29,8 +61,6 @@ #define FILTER_GRANT_CHUNK (2ULL * PTLRPC_MAX_BRW_SIZE) #define GRANT_FOR_LLOG(obd) 16 -#define FILTER_RECOVERY_TIMEOUT (obd_timeout * 5 * HZ / 2) /* *waves hands* */ - extern struct file_operations filter_per_export_stats_fops; extern struct file_operations filter_per_nid_stats_fops; @@ -55,11 +85,12 @@ struct filter_mod_data { int fmd_refcount; /* reference counter - list holds 1 */ }; -#ifdef BGL_SUPPORT +#ifdef HAVE_BGL_SUPPORT #define FILTER_FMD_MAX_NUM_DEFAULT 128 /* many active files per client on BGL */ #else #define FILTER_FMD_MAX_NUM_DEFAULT 32 #endif +/* Client cache seconds */ #define FILTER_FMD_MAX_AGE_DEFAULT ((obd_timeout + 10) * HZ) struct filter_mod_data *filter_fmd_find(struct obd_export *exp,