Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / mds / mds_internal.h
1 #ifndef _MDS_INTERNAL_H
2 #define _MDS_INTERNAL_H
3 static inline struct mds_obd *mds_req2mds(struct ptlrpc_request *req)
4 {
5         return &req->rq_export->exp_obd->u.mds;
6 }
7
8 /* mds/mds_fs.c */
9 struct llog_handle *mds_log_create(struct obd_device *obd);
10 int mds_log_close(struct llog_handle *cathandle, struct llog_handle *loghandle);
11 struct llog_handle *mds_log_open(struct obd_device *obd,
12                                  struct llog_cookie *logcookie);
13 struct llog_handle *mds_get_catalog(struct obd_device *obd);
14 void mds_put_catalog(struct llog_handle *cathandle);
15
16 /* mds/handler.c */
17 struct mds_file_data *mds_mfd_new(void);
18 void mds_mfd_put(struct mds_file_data *mfd);
19 void mds_mfd_destroy(struct mds_file_data *mfd);
20
21 /* mds/mds_reint.c */
22 void mds_commit_cb(struct obd_device *, __u64 last_rcvd, void *data, int error);
23 int mds_finish_transno(struct mds_obd *mds, struct inode *inode, void *handle,
24                        struct ptlrpc_request *req, int rc, __u32 op_data);
25
26 /* mds/mds_lib.c */
27 int mds_update_unpack(struct ptlrpc_request *, int offset,
28                       struct mds_update_record *);
29
30 /* mds/mds_lov.c */
31 int mds_get_lovtgts(struct mds_obd *mds, int tgt_count,
32                     struct obd_uuid *uuidarray);
33
34 /* mds/mds_open.c */
35 int mds_open(struct mds_update_record *rec, int offset,
36              struct ptlrpc_request *req, struct lustre_handle *);
37 int mds_pin(struct ptlrpc_request *req);
38
39 /* mds/mds_fs.c */
40 int mds_client_add(struct obd_device *obd, struct mds_obd *mds,
41                    struct mds_export_data *med, int cl_off);
42 int mds_client_free(struct obd_export *exp);
43
44 #ifdef __KERNEL__
45 void mds_pack_inode2fid(struct ll_fid *fid, struct inode *inode);
46 void mds_pack_inode2body(struct mds_body *body, struct inode *inode);
47 #endif
48
49 #endif /* _MDS_INTERNAL_H */