#include "mdt_internal.h"
#include <lustre_nodemap.h>
-static const struct portals_handle_ops mfd_open_handle_ops = {
- .hop_type = "mdt",
-};
+static const char mfd_open_handle_owner[] = "mdt";
/* Create a new mdt_file_data struct, initialize it,
* and insert it to global hash table */
INIT_LIST_HEAD_RCU(&mfd->mfd_open_handle.h_link);
mfd->mfd_owner = med;
INIT_LIST_HEAD(&mfd->mfd_list);
- class_handle_hash(&mfd->mfd_open_handle, &mfd_open_handle_ops);
+ class_handle_hash(&mfd->mfd_open_handle, mfd_open_handle_owner);
}
RETURN(mfd);
ENTRY;
LASSERT(open_handle != NULL);
- mfd = class_handle2object(open_handle->cookie, &mfd_open_handle_ops);
+ mfd = class_handle2object(open_handle->cookie, mfd_open_handle_owner);
if (mfd)
refcount_dec(&mfd->mfd_open_handle.h_ref);