aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ondisk.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-11-01 14:35:17 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:34:23 -0500
commit1a7b1eed5802502fd649e04784becd58557fdcf1 (patch)
tree31e9e9ab8ba1296751985d49d55154848ae2eefa /fs/gfs2/ondisk.c
parent4f56110a00af5fb2e22fbccfcaf944d62cae8fcf (diff)
[GFS2] Shrink gfs2_inode (6) - di_atime/di_mtime/di_ctime
Remove the di_[amc]time fields and use inode->i_[amc]time fields instead. This saves 24 bytes from the gfs2_inode. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ondisk.c')
-rw-r--r--fs/gfs2/ondisk.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index b4e354b18815..82003e872a37 100644
--- a/fs/gfs2/ondisk.c
+++ b/fs/gfs2/ondisk.c
@@ -167,9 +167,9 @@ void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf)
167 str->di_nlink = cpu_to_be32(ip->i_inode.i_nlink); 167 str->di_nlink = cpu_to_be32(ip->i_inode.i_nlink);
168 str->di_size = cpu_to_be64(di->di_size); 168 str->di_size = cpu_to_be64(di->di_size);
169 str->di_blocks = cpu_to_be64(di->di_blocks); 169 str->di_blocks = cpu_to_be64(di->di_blocks);
170 str->di_atime = cpu_to_be64(di->di_atime); 170 str->di_atime = cpu_to_be64(ip->i_inode.i_atime.tv_sec);
171 str->di_mtime = cpu_to_be64(di->di_mtime); 171 str->di_mtime = cpu_to_be64(ip->i_inode.i_mtime.tv_sec);
172 str->di_ctime = cpu_to_be64(di->di_ctime); 172 str->di_ctime = cpu_to_be64(ip->i_inode.i_ctime.tv_sec);
173 173
174 str->di_goal_meta = cpu_to_be64(di->di_goal_meta); 174 str->di_goal_meta = cpu_to_be64(di->di_goal_meta);
175 str->di_goal_data = cpu_to_be64(di->di_goal_data); 175 str->di_goal_data = cpu_to_be64(di->di_goal_data);
@@ -193,10 +193,6 @@ void gfs2_dinode_print(const struct gfs2_inode *ip)
193 193
194 printk(KERN_INFO " di_size = %llu\n", (unsigned long long)di->di_size); 194 printk(KERN_INFO " di_size = %llu\n", (unsigned long long)di->di_size);
195 printk(KERN_INFO " di_blocks = %llu\n", (unsigned long long)di->di_blocks); 195 printk(KERN_INFO " di_blocks = %llu\n", (unsigned long long)di->di_blocks);
196 printk(KERN_INFO " di_atime = %lld\n", (long long)di->di_atime);
197 printk(KERN_INFO " di_mtime = %lld\n", (long long)di->di_mtime);
198 printk(KERN_INFO " di_ctime = %lld\n", (long long)di->di_ctime);
199
200 printk(KERN_INFO " di_goal_meta = %llu\n", (unsigned long long)di->di_goal_meta); 196 printk(KERN_INFO " di_goal_meta = %llu\n", (unsigned long long)di->di_goal_meta);
201 printk(KERN_INFO " di_goal_data = %llu\n", (unsigned long long)di->di_goal_data); 197 printk(KERN_INFO " di_goal_data = %llu\n", (unsigned long long)di->di_goal_data);
202 198