diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-10-13 20:33:01 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:32:55 -0500 |
commit | 5c6edb576f3800723bb65dbfaff82517089e32d0 (patch) | |
tree | 650526e698cb123dfc6eb086c7da05dec74f89dc | |
parent | 3ca68df6ee61e1a2034f3307b9edb9b3d87e5ca1 (diff) |
[GFS2] gfs2_dinode_host fields are host-endian
Annotated scalar fields, dropped unused ones. Note that
it's not at all obvious that we want to convert all of them
to host-endian...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r-- | fs/gfs2/incore.h | 2 | ||||
-rw-r--r-- | include/linux/gfs2_ondisk.h | 47 |
2 files changed, 21 insertions, 28 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 118dc693d111..1c876e0fb44a 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h | |||
@@ -229,7 +229,7 @@ struct gfs2_inode { | |||
229 | unsigned long i_flags; /* GIF_... */ | 229 | unsigned long i_flags; /* GIF_... */ |
230 | 230 | ||
231 | u64 i_vn; | 231 | u64 i_vn; |
232 | struct gfs2_dinode i_di; /* To be replaced by ref to block */ | 232 | struct gfs2_dinode_host i_di; /* To be replaced by ref to block */ |
233 | 233 | ||
234 | struct gfs2_glock *i_gl; /* Move into i_gh? */ | 234 | struct gfs2_glock *i_gl; /* Move into i_gh? */ |
235 | struct gfs2_holder i_iopen_gh; | 235 | struct gfs2_holder i_iopen_gh; |
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index f334b4bd2915..0e67a89a9699 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -275,41 +275,34 @@ struct gfs2_dinode_host { | |||
275 | 275 | ||
276 | struct gfs2_inum di_num; | 276 | struct gfs2_inum di_num; |
277 | 277 | ||
278 | __be32 di_mode; /* mode of file */ | 278 | __u32 di_mode; /* mode of file */ |
279 | __be32 di_uid; /* owner's user id */ | 279 | __u32 di_uid; /* owner's user id */ |
280 | __be32 di_gid; /* owner's group id */ | 280 | __u32 di_gid; /* owner's group id */ |
281 | __be32 di_nlink; /* number of links to this file */ | 281 | __u32 di_nlink; /* number of links to this file */ |
282 | __be64 di_size; /* number of bytes in file */ | 282 | __u64 di_size; /* number of bytes in file */ |
283 | __be64 di_blocks; /* number of blocks in file */ | 283 | __u64 di_blocks; /* number of blocks in file */ |
284 | __be64 di_atime; /* time last accessed */ | 284 | __u64 di_atime; /* time last accessed */ |
285 | __be64 di_mtime; /* time last modified */ | 285 | __u64 di_mtime; /* time last modified */ |
286 | __be64 di_ctime; /* time last changed */ | 286 | __u64 di_ctime; /* time last changed */ |
287 | __be32 di_major; /* device major number */ | 287 | __u32 di_major; /* device major number */ |
288 | __be32 di_minor; /* device minor number */ | 288 | __u32 di_minor; /* device minor number */ |
289 | 289 | ||
290 | /* This section varies from gfs1. Padding added to align with | 290 | /* This section varies from gfs1. Padding added to align with |
291 | * remainder of dinode | 291 | * remainder of dinode |
292 | */ | 292 | */ |
293 | __be64 di_goal_meta; /* rgrp to alloc from next */ | 293 | __u64 di_goal_meta; /* rgrp to alloc from next */ |
294 | __be64 di_goal_data; /* data block goal */ | 294 | __u64 di_goal_data; /* data block goal */ |
295 | __be64 di_generation; /* generation number for NFS */ | 295 | __u64 di_generation; /* generation number for NFS */ |
296 | 296 | ||
297 | __be32 di_flags; /* GFS2_DIF_... */ | 297 | __u32 di_flags; /* GFS2_DIF_... */ |
298 | __be32 di_payload_format; /* GFS2_FORMAT_... */ | 298 | __u32 di_payload_format; /* GFS2_FORMAT_... */ |
299 | __u16 __pad1; /* Was ditype in gfs1 */ | 299 | __u16 di_height; /* height of metadata */ |
300 | __be16 di_height; /* height of metadata */ | ||
301 | __u32 __pad2; /* Unused incarnation number from gfs1 */ | ||
302 | 300 | ||
303 | /* These only apply to directories */ | 301 | /* These only apply to directories */ |
304 | __u16 __pad3; /* Padding */ | 302 | __u16 di_depth; /* Number of bits in the table */ |
305 | __be16 di_depth; /* Number of bits in the table */ | 303 | __u32 di_entries; /* The number of entries in the directory */ |
306 | __be32 di_entries; /* The number of entries in the directory */ | ||
307 | |||
308 | struct gfs2_inum __pad4; /* Unused even in current gfs1 */ | ||
309 | 304 | ||
310 | __be64 di_eattr; /* extended attribute block number */ | 305 | __u64 di_eattr; /* extended attribute block number */ |
311 | |||
312 | __u8 di_reserved[56]; | ||
313 | }; | 306 | }; |
314 | 307 | ||
315 | /* | 308 | /* |