Merge remote-tracking branch 'staging/staging-next'
[deliverable/linux.git] / drivers / staging / lustre / lustre / include / lustre_lite.h
CommitLineData
d7e09d03
PT
1/*
2 * GPL HEADER START
3 *
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; If not, see
6a5b99a4 18 * http://www.gnu.org/licenses/gpl-2.0.html
d7e09d03 19 *
d7e09d03
PT
20 * GPL HEADER END
21 */
22/*
23 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Use is subject to license terms.
25 *
26 * Copyright (c) 2011, 2012, Intel Corporation.
27 */
28/*
29 * This file is part of Lustre, http://www.lustre.org/
30 * Lustre is a trademark of Sun Microsystems, Inc.
31 */
32
33#ifndef _LL_H
34#define _LL_H
35
36/** \defgroup lite lite
37 *
38 * @{
39 */
40
1accaadf 41#include "linux/lustre_lite.h"
d7e09d03 42
1accaadf 43#include "obd_class.h"
1accaadf 44#include "lustre_net.h"
1accaadf 45#include "lustre_ha.h"
d7e09d03
PT
46
47/* 4UL * 1024 * 1024 */
48#define LL_MAX_BLKSIZE_BITS (22)
cd94f231 49#define LL_MAX_BLKSIZE (1UL << LL_MAX_BLKSIZE_BITS)
d7e09d03 50
d7e09d03 51/*
85f552df 52 * This is embedded into llite super-blocks to keep track of
d7e09d03
PT
53 * connect flags (capabilities) supported by all imports given mount is
54 * connected to.
55 */
56struct lustre_client_ocd {
57 /*
58 * This is conjunction of connect_flags across all imports (LOVs) this
59 * mount is connected to. This field is updated by cl_ocd_update()
60 * under ->lco_lock.
61 */
62 __u64 lco_flags;
63 struct mutex lco_lock;
64 struct obd_export *lco_md_exp;
65 struct obd_export *lco_dt_exp;
66};
67
68/*
69 * Chain of hash overflow pages.
70 */
71struct ll_dir_chain {
72 /* XXX something. Later */
73};
74
75static inline void ll_dir_chain_init(struct ll_dir_chain *chain)
76{
77}
78
79static inline void ll_dir_chain_fini(struct ll_dir_chain *chain)
80{
81}
82
d7e09d03
PT
83/** @} lite */
84
85#endif
This page took 0.360023 seconds and 5 git commands to generate.