aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/eattr.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/eattr.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/eattr.c')
-rw-r--r--fs/gfs2/eattr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c
index 935cc9a57168..7dde84775ba7 100644
--- a/fs/gfs2/eattr.c
+++ b/fs/gfs2/eattr.c
@@ -300,7 +300,7 @@ static int ea_dealloc_unstuffed(struct gfs2_inode *ip, struct buffer_head *bh,
300 300
301 error = gfs2_meta_inode_buffer(ip, &dibh); 301 error = gfs2_meta_inode_buffer(ip, &dibh);
302 if (!error) { 302 if (!error) {
303 ip->i_di.di_ctime = get_seconds(); 303 ip->i_inode.i_ctime.tv_sec = get_seconds();
304 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 304 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
305 gfs2_dinode_out(ip, dibh->b_data); 305 gfs2_dinode_out(ip, dibh->b_data);
306 brelse(dibh); 306 brelse(dibh);
@@ -715,7 +715,7 @@ static int ea_alloc_skeleton(struct gfs2_inode *ip, struct gfs2_ea_request *er,
715 (er->er_mode & S_IFMT)); 715 (er->er_mode & S_IFMT));
716 ip->i_inode.i_mode = er->er_mode; 716 ip->i_inode.i_mode = er->er_mode;
717 } 717 }
718 ip->i_di.di_ctime = get_seconds(); 718 ip->i_inode.i_ctime.tv_sec = get_seconds();
719 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 719 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
720 gfs2_dinode_out(ip, dibh->b_data); 720 gfs2_dinode_out(ip, dibh->b_data);
721 brelse(dibh); 721 brelse(dibh);
@@ -850,7 +850,7 @@ static int ea_set_simple_noalloc(struct gfs2_inode *ip, struct buffer_head *bh,
850 (ip->i_inode.i_mode & S_IFMT) == (er->er_mode & S_IFMT)); 850 (ip->i_inode.i_mode & S_IFMT) == (er->er_mode & S_IFMT));
851 ip->i_inode.i_mode = er->er_mode; 851 ip->i_inode.i_mode = er->er_mode;
852 } 852 }
853 ip->i_di.di_ctime = get_seconds(); 853 ip->i_inode.i_ctime.tv_sec = get_seconds();
854 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 854 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
855 gfs2_dinode_out(ip, dibh->b_data); 855 gfs2_dinode_out(ip, dibh->b_data);
856 brelse(dibh); 856 brelse(dibh);
@@ -1130,7 +1130,7 @@ static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el)
1130 1130
1131 error = gfs2_meta_inode_buffer(ip, &dibh); 1131 error = gfs2_meta_inode_buffer(ip, &dibh);
1132 if (!error) { 1132 if (!error) {
1133 ip->i_di.di_ctime = get_seconds(); 1133 ip->i_inode.i_ctime.tv_sec = get_seconds();
1134 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 1134 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
1135 gfs2_dinode_out(ip, dibh->b_data); 1135 gfs2_dinode_out(ip, dibh->b_data);
1136 brelse(dibh); 1136 brelse(dibh);
@@ -1285,7 +1285,6 @@ int gfs2_ea_acl_chmod(struct gfs2_inode *ip, struct gfs2_ea_location *el,
1285 if (!error) { 1285 if (!error) {
1286 error = inode_setattr(&ip->i_inode, attr); 1286 error = inode_setattr(&ip->i_inode, attr);
1287 gfs2_assert_warn(GFS2_SB(&ip->i_inode), !error); 1287 gfs2_assert_warn(GFS2_SB(&ip->i_inode), !error);
1288 gfs2_inode_attr_out(ip);
1289 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 1288 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
1290 gfs2_dinode_out(ip, dibh->b_data); 1289 gfs2_dinode_out(ip, dibh->b_data);
1291 brelse(dibh); 1290 brelse(dibh);