#define DEBUG_SUBSYSTEM S_MDS
-#include <lustre/lustre_errno.h>
+#include <lustre_errno.h>
#include "mdt_internal.h"
/* Max allocation to satisfy single HSM RPC. */
int mdt_hsm_attr_set(struct mdt_thread_info *info, struct mdt_object *obj,
const struct md_hsm *mh)
{
- struct md_object *next = mdt_object_child(obj);
- struct lu_buf *buf = &info->mti_buf;
- struct hsm_attrs *attrs;
- int rc;
+ struct md_object *next = mdt_object_child(obj);
+ struct lu_buf *buf = &info->mti_buf;
+ struct hsm_attrs *attrs;
+ int rc;
ENTRY;
attrs = (struct hsm_attrs *)info->mti_xattr_buf;
if (!mdt_hsm_is_admin(info))
GOTO(out, rc = -EPERM);
- rc = mdt_hsm_coordinator_update(info, hpk);
+ rc = mdt_hsm_update_request_state(info, hpk);
out:
mdt_thread_info_fini(info);
RETURN(rc);
}
/* Return true if a FID is present in an action list. */
-static bool is_fid_in_hal(struct hsm_action_list *hal, const lustre_fid *fid)
+static bool is_fid_in_hal(struct hsm_action_list *hal, const struct lu_fid *fid)
{
struct hsm_action_item *hai;
int i;