Skip to content
Snippets Groups Projects
Commit d85cb89e authored by Pravin Shelar's avatar Pravin Shelar
Browse files

b=14340
i=h.huang
i=nikita.danilov

lu_dirent structure was inconsistent after lu_dirent->lde_hash
element extension to 64 bit change patch.
size of structure is different on 32 and 64 bit platform.
patch fixes that bug.
parent 7a3bf9e1
No related merge requests found
...@@ -354,6 +354,7 @@ struct lu_dirent { ...@@ -354,6 +354,7 @@ struct lu_dirent {
__u64 lde_hash; __u64 lde_hash;
__u16 lde_reclen; __u16 lde_reclen;
__u16 lde_namelen; __u16 lde_namelen;
__u32 lde_pad0;
char lde_name[0]; char lde_name[0];
}; };
...@@ -361,6 +362,7 @@ struct lu_dirpage { ...@@ -361,6 +362,7 @@ struct lu_dirpage {
__u64 ldp_hash_start; __u64 ldp_hash_start;
__u64 ldp_hash_end; __u64 ldp_hash_end;
__u16 ldp_flags; __u16 ldp_flags;
__u16 ldp_pad;
__u32 ldp_pad0; __u32 ldp_pad0;
struct lu_dirent ldp_entries[0]; struct lu_dirent ldp_entries[0];
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment