Whamcloud - gitweb
- landed b_hd_mdref (mostly WB cache fixes)
[fs/lustre-release.git] / lustre / include / linux / obd_ost.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (C) 2001 Cluster File Systems, Inc. <braam@clusterfs.com>
5  *
6  *   This file is part of Lustre, http://www.lustre.org.
7  *
8  *   Lustre is free software; you can redistribute it and/or
9  *   modify it under the terms of version 2 of the GNU General Public
10  *   License as published by the Free Software Foundation.
11  *
12  *   Lustre is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with Lustre; if not, write to the Free Software
19  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  *
21  * Data structures for object storage targets and client: OST & OSC's
22  * 
23  * See also lustre_idl.h for wire formats of requests.
24  *
25  */
26
27 #ifndef _LUSTRE_OST_H
28 #define _LUSTRE_OST_H
29
30 #include <linux/obd_class.h>
31
32 struct osc_brw_async_args {
33         struct obdo     *aa_oa;
34         int              aa_requested_nob;
35         int              aa_nio_count;
36         obd_count        aa_page_count;
37         struct brw_page *aa_pga;
38         struct client_obd *aa_cli;
39         struct list_head aa_oaps;
40 };
41
42 struct osc_getattr_async_args {
43         struct obdo     *aa_oa;
44 };
45
46 extern int ost_brw_write(struct ptlrpc_request *, struct obd_trans_info *);
47 extern int ost_handle(struct ptlrpc_request *req);
48
49 #endif