Whamcloud - gitweb
- Added an 'xid' field to struct niobuf
[fs/lustre-release.git] / lustre / include / linux / obd_filter.h
1 #ifndef _OBD_FILTER_H
2 #define _OBD_FILTER_H
3 /*
4  * Copyright (C) 2001  Cluster File Systems, Inc.
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  */
9
10
11 #ifndef OBD_FILTER_DEVICENAME
12 #define OBD_FILTER_DEVICENAME "obdfilter"
13 #endif
14
15 struct run_ctxt { 
16         struct vfsmount *pwdmnt;
17         struct dentry   *pwd;
18         mm_segment_t     fs;
19 };
20
21 struct filter_obd {
22         char *fo_fstype;
23         struct super_block * fo_sb;
24         struct vfsmount *fo_vfsmnt;
25         struct run_ctxt  fo_ctxt;
26         spinlock_t fo_lock;
27         __u64 fo_lastino;
28         struct file_operations *fo_fop; 
29         struct inode_operations *fo_iop;
30         struct address_space_operations *fo_aops;
31 };
32
33
34 extern struct obd_ops filter_obd_ops;
35
36 #endif