diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-01 10:34:15 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:34:07 -0500 |
commit | af339c0241d0dd3b35f9097b4f4999bb22ffe502 (patch) | |
tree | c4c3e66de3c63b7a8205717bdf833dd567f6b746 /include | |
parent | 4cc14f0b88bf3e0b508143e091eb5a8dff3e3b9c (diff) |
[GFS2] Shrink gfs2_inode (1) - di_header/di_num
The metadata header doesn't need to be stored in the incore
struct gfs2_inode since its constant, and this patch removes it.
Also, there is already a field for the inode's number in the
struct gfs2_inode, so we don't need one in struct gfs2_dinode_host
as well.
This saves 28 bytes of space in the struct gfs2_inode.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/gfs2_ondisk.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index cf4c655d0d5..c0e76fc718c 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -322,10 +322,6 @@ struct gfs2_dinode { | |||
322 | }; | 322 | }; |
323 | 323 | ||
324 | struct gfs2_dinode_host { | 324 | struct gfs2_dinode_host { |
325 | struct gfs2_meta_header_host di_header; | ||
326 | |||
327 | struct gfs2_inum_host di_num; | ||
328 | |||
329 | __u32 di_mode; /* mode of file */ | 325 | __u32 di_mode; /* mode of file */ |
330 | __u32 di_uid; /* owner's user id */ | 326 | __u32 di_uid; /* owner's user id */ |
331 | __u32 di_gid; /* owner's group id */ | 327 | __u32 di_gid; /* owner's group id */ |
@@ -528,7 +524,6 @@ struct gfs2_quota_change_host { | |||
528 | 524 | ||
529 | extern void gfs2_inum_in(struct gfs2_inum_host *no, const void *buf); | 525 | extern void gfs2_inum_in(struct gfs2_inum_host *no, const void *buf); |
530 | extern void gfs2_inum_out(const struct gfs2_inum_host *no, void *buf); | 526 | extern void gfs2_inum_out(const struct gfs2_inum_host *no, void *buf); |
531 | extern void gfs2_meta_header_in(struct gfs2_meta_header_host *mh, const void *buf); | ||
532 | extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf); | 527 | extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf); |
533 | extern void gfs2_rindex_in(struct gfs2_rindex_host *ri, const void *buf); | 528 | extern void gfs2_rindex_in(struct gfs2_rindex_host *ri, const void *buf); |
534 | extern void gfs2_rindex_out(const struct gfs2_rindex_host *ri, void *buf); | 529 | extern void gfs2_rindex_out(const struct gfs2_rindex_host *ri, void *buf); |