diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2008-02-06 09:25:45 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-03-31 10:40:37 +0100 |
commit | ce276b06e8b81845926387e93f77bf81e14b5cc2 (patch) | |
tree | ed28cd74af058761ccaa30829babc872762cf0a7 /fs/gfs2/incore.h | |
parent | 9feb7c889f2a3b088a7f6583e609bd39997c0f47 (diff) | |
download | kernel_samsung_espresso10-ce276b06e8b81845926387e93f77bf81e14b5cc2.tar.gz kernel_samsung_espresso10-ce276b06e8b81845926387e93f77bf81e14b5cc2.tar.bz2 kernel_samsung_espresso10-ce276b06e8b81845926387e93f77bf81e14b5cc2.zip |
[GFS2] Reduce inode size by merging fields
There were three fields being used to keep track of the location
of the most recently allocated block for each inode. These have
been merged into a single field in order to better keep the
data and metadata for an inode close on disk, and also to reduce
the space required for storage.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index b67e44baa73..c50dcdf7992 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -241,8 +241,6 @@ enum { struct gfs2_dinode_host { u64 di_size; /* number of bytes in file */ u64 di_blocks; /* number of blocks in file */ - u64 di_goal_meta; /* rgrp to alloc from next */ - u64 di_goal_data; /* data block goal */ u64 di_generation; /* generation number for NFS */ u32 di_flags; /* GFS2_DIF_... */ /* These only apply to directories */ @@ -262,8 +260,7 @@ struct gfs2_inode { struct gfs2_holder i_iopen_gh; struct gfs2_holder i_gh; /* for prepare/commit_write only */ struct gfs2_alloc *i_alloc; - u64 i_last_rg_alloc; - + u64 i_goal; /* goal block for allocations */ struct rw_semaphore i_rw_mutex; u8 i_height; u8 i_depth; |