aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-02-06 04:25:45 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2008-03-31 05:40:37 -0400
commitce276b06e8b81845926387e93f77bf81e14b5cc2 (patch)
treeed28cd74af058761ccaa30829babc872762cf0a7 /fs/gfs2/bmap.c
parent9feb7c889f2a3b088a7f6583e609bd39997c0f47 (diff)
[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/bmap.c')
-rw-r--r--fs/gfs2/bmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 2011dd27f8d6..30d718b3438f 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -1020,9 +1020,7 @@ static int trunc_end(struct gfs2_inode *ip)
1020 1020
1021 if (!ip->i_di.di_size) { 1021 if (!ip->i_di.di_size) {
1022 ip->i_height = 0; 1022 ip->i_height = 0;
1023 ip->i_di.di_goal_meta = 1023 ip->i_goal = ip->i_no_addr;
1024 ip->i_di.di_goal_data =
1025 ip->i_no_addr;
1026 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); 1024 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode));
1027 } 1025 }
1028 ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 1026 ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME;