Whamcloud - gitweb
b=3550
[fs/lustre-release.git] / lustre / mds / mds_internal.h
index 0f3a091..f1b1517 100644 (file)
@@ -68,7 +68,8 @@ int mds_cleanup_orphans(struct obd_device *obd);
 /* mds/mds_log.c */
 int mds_log_op_unlink(struct obd_device *obd, struct inode *inode,
                       struct lov_mds_md *lmm, int lmm_size,
-                      struct llog_cookie *logcookies, int cookies_size);
+                      struct llog_cookie *logcookies, int cookies_size,
+                      struct llog_create_locks **res);
 int mds_llog_init(struct obd_device *obd, struct obd_llogs *,
                   struct obd_device *tgt, int count, struct llog_catid *logid);
 int mds_llog_finish(struct obd_device *obd, struct obd_llogs *, int count);
@@ -111,6 +112,7 @@ int mds_obd_destroy(struct obd_export *exp, struct obdo *oa,
                     struct lov_stripe_md *ea, struct obd_trans_info *oti);
 
 /* mds/handler.c */
+int mds_handle(struct ptlrpc_request *req);
 extern struct lvfs_callback_ops mds_lvfs_ops;
 int mds_lov_clean(struct obd_device *obd);
 extern int mds_iocontrol(unsigned int cmd, struct obd_export *exp,
@@ -124,6 +126,7 @@ int mds_get_md(struct obd_device *, struct inode *, void *md, int *size,
 int mds_pack_md(struct obd_device *, struct lustre_msg *, int offset,
                 struct mds_body *, struct inode *, int lock);
 void mds_pack_dentry2fid(struct ll_fid *, struct dentry *);
+void mds_pack_dentry2body(struct mds_body *b, struct dentry *dentry);
 void mds_pack_inode2fid(struct obd_device *, struct ll_fid *, struct inode *);
 void mds_pack_inode2body(struct obd_device *, struct mds_body *, struct inode *);
 #endif
@@ -144,6 +147,7 @@ int mds_unlink_slave_objs(struct obd_device *, struct dentry *);
 void mds_unlock_slave_objs(struct obd_device *, struct dentry *,
                            struct lustre_handle *);
 int mds_lock_and_check_slave(int, struct ptlrpc_request *, struct lustre_handle *);
+int mds_convert_mea_ea(struct obd_device *, struct inode *, struct lov_mds_md *, int);
 
 
 #endif /* _MDS_INTERNAL_H */