aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_inode.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/ops_inode.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/ops_inode.c')
-rw-r--r--fs/gfs2/ops_inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c
index 06176dee1550..585b43a94ace 100644
--- a/fs/gfs2/ops_inode.c
+++ b/fs/gfs2/ops_inode.c
@@ -729,7 +729,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry,
729 error = gfs2_meta_inode_buffer(ip, &dibh); 729 error = gfs2_meta_inode_buffer(ip, &dibh);
730 if (error) 730 if (error)
731 goto out_end_trans; 731 goto out_end_trans;
732 ip->i_di.di_ctime = get_seconds(); 732 ip->i_inode.i_ctime.tv_sec = get_seconds();
733 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 733 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
734 gfs2_dinode_out(ip, dibh->b_data); 734 gfs2_dinode_out(ip, dibh->b_data);
735 brelse(dibh); 735 brelse(dibh);
@@ -915,7 +915,6 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
915 915
916 error = inode_setattr(inode, attr); 916 error = inode_setattr(inode, attr);
917 gfs2_assert_warn(sdp, !error); 917 gfs2_assert_warn(sdp, !error);
918 gfs2_inode_attr_out(ip);
919 918
920 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 919 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
921 gfs2_dinode_out(ip, dibh->b_data); 920 gfs2_dinode_out(ip, dibh->b_data);