Commit d8f6bc9a authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: Get rid of lustre_fid typedef

Replace it with struct lu_fid
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3478e02
...@@ -3550,7 +3550,7 @@ void lustre_swab_layout_intent(struct layout_intent *li); ...@@ -3550,7 +3550,7 @@ void lustre_swab_layout_intent(struct layout_intent *li);
*/ */
struct hsm_progress_kernel { struct hsm_progress_kernel {
/* Field taken from struct hsm_progress */ /* Field taken from struct hsm_progress */
lustre_fid hpk_fid; struct lu_fid hpk_fid;
__u64 hpk_cookie; __u64 hpk_cookie;
struct hsm_extent hpk_extent; struct hsm_extent hpk_extent;
__u16 hpk_flags; __u16 hpk_flags;
......
...@@ -136,7 +136,7 @@ struct filter_fid_old { ...@@ -136,7 +136,7 @@ struct filter_fid_old {
/* Userspace should treat lu_fid as opaque, and only use the following methods /* Userspace should treat lu_fid as opaque, and only use the following methods
* to print or parse them. Other functions (e.g. compare, swab) could be moved * to print or parse them. Other functions (e.g. compare, swab) could be moved
* here from lustre_idl.h if needed. */ * here from lustre_idl.h if needed. */
typedef struct lu_fid lustre_fid; struct lu_fid;
/** /**
* Following struct for object attributes, that will be kept inode's EA. * Following struct for object attributes, that will be kept inode's EA.
...@@ -761,10 +761,10 @@ struct changelog_rec { ...@@ -761,10 +761,10 @@ struct changelog_rec {
__u64 cr_prev; /**< last index for this target fid */ __u64 cr_prev; /**< last index for this target fid */
__u64 cr_time; __u64 cr_time;
union { union {
lustre_fid cr_tfid; /**< target fid */ struct lu_fid cr_tfid; /**< target fid */
__u32 cr_markerflags; /**< CL_MARK flags */ __u32 cr_markerflags; /**< CL_MARK flags */
}; };
lustre_fid cr_pfid; /**< parent fid */ struct lu_fid cr_pfid; /**< parent fid */
char cr_name[0]; /**< last element */ char cr_name[0]; /**< last element */
} __packed; } __packed;
...@@ -781,12 +781,12 @@ struct changelog_ext_rec { ...@@ -781,12 +781,12 @@ struct changelog_ext_rec {
__u64 cr_prev; /**< last index for this target fid */ __u64 cr_prev; /**< last index for this target fid */
__u64 cr_time; __u64 cr_time;
union { union {
lustre_fid cr_tfid; /**< target fid */ struct lu_fid cr_tfid; /**< target fid */
__u32 cr_markerflags; /**< CL_MARK flags */ __u32 cr_markerflags; /**< CL_MARK flags */
}; };
lustre_fid cr_pfid; /**< target parent fid */ struct lu_fid cr_pfid; /**< target parent fid */
lustre_fid cr_sfid; /**< source fid, or zero */ struct lu_fid cr_sfid; /**< source fid, or zero */
lustre_fid cr_spfid; /**< source parent fid, or zero */ struct lu_fid cr_spfid; /**< source parent fid, or zero */
char cr_name[0]; /**< last element */ char cr_name[0]; /**< last element */
} __packed; } __packed;
...@@ -976,8 +976,8 @@ struct hsm_request { ...@@ -976,8 +976,8 @@ struct hsm_request {
}; };
struct hsm_user_item { struct hsm_user_item {
lustre_fid hui_fid; struct lu_fid hui_fid;
struct hsm_extent hui_extent; struct hsm_extent hui_extent;
} __packed; } __packed;
struct hsm_user_request { struct hsm_user_request {
...@@ -1046,8 +1046,8 @@ static inline char *hsm_copytool_action2name(enum hsm_copytool_action a) ...@@ -1046,8 +1046,8 @@ static inline char *hsm_copytool_action2name(enum hsm_copytool_action a)
struct hsm_action_item { struct hsm_action_item {
__u32 hai_len; /* valid size of this struct */ __u32 hai_len; /* valid size of this struct */
__u32 hai_action; /* hsm_copytool_action, but use known size */ __u32 hai_action; /* hsm_copytool_action, but use known size */
lustre_fid hai_fid; /* Lustre FID to operated on */ struct lu_fid hai_fid; /* Lustre FID to operated on */
lustre_fid hai_dfid; /* fid used for data access */ struct lu_fid hai_dfid; /* fid used for data access */
struct hsm_extent hai_extent; /* byte range to operate on */ struct hsm_extent hai_extent; /* byte range to operate on */
__u64 hai_cookie; /* action cookie from coordinator */ __u64 hai_cookie; /* action cookie from coordinator */
__u64 hai_gid; /* grouplock id */ __u64 hai_gid; /* grouplock id */
...@@ -1157,7 +1157,7 @@ struct hsm_user_import { ...@@ -1157,7 +1157,7 @@ struct hsm_user_import {
#define HP_FLAG_RETRY 0x02 #define HP_FLAG_RETRY 0x02
struct hsm_progress { struct hsm_progress {
lustre_fid hp_fid; struct lu_fid hp_fid;
__u64 hp_cookie; __u64 hp_cookie;
struct hsm_extent hp_extent; struct hsm_extent hp_extent;
__u16 hp_flags; __u16 hp_flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment