Whamcloud - gitweb
move device_{init,fini}() into lu_device_type_operations, and add "const" to second...
[fs/lustre-release.git] / lustre / mdd / mdd_internal.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4 #ifndef _MDD_INTERNAL_H
5 #define _MDD_INTERNAL_H
6
7 struct mdd_device {
8         struct md_device                 mdd_md_dev;
9         struct dt_device                *mdd_child;
10         int                              mdd_max_mddize;
11         int                              mdd_max_cookiesize;
12         struct file                     *mdd_rcvd_filp;
13         spinlock_t                       mdd_transno_lock;
14         __u64                            mdd_last_transno;
15         __u64                            mdd_mount_count;
16         __u64                            mdd_io_epoch;
17         unsigned long                    mdd_atime_diff;
18         struct lr_server_data           *mdd_server_data;
19         struct dentry                   *mdd_pending_dir;
20         struct dentry                   *mdd_logs_dir;
21         struct dentry                   *mdd_objects_dir;
22         struct llog_handle              *mdd_cfg_llh;
23         struct file                     *mdd_health_check_filp;
24         struct semaphore                 mdd_health_sem;
25         unsigned long                    mdd_lov_objids_valid:1,
26                                          mdd_fl_user_xattr:1,
27                                          mdd_fl_acl:1;
28 };
29
30 struct mdd_object {
31         struct md_object  mod_obj;
32 };
33
34 int mdd_object_put(struct mdd_device *mdd, struct mdd_object *obj);
35 void mdd_object_get(struct mdd_device *mdd, struct mdd_object *obj);
36 #endif