diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-01 14:35:17 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:34:23 -0500 |
commit | 1a7b1eed5802502fd649e04784becd58557fdcf1 (patch) | |
tree | 31e9e9ab8ba1296751985d49d55154848ae2eefa /fs/gfs2/bmap.c | |
parent | 4f56110a00af5fb2e22fbccfcaf944d62cae8fcf (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/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 0c913eecf884..692d4a3da1bc 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -778,7 +778,7 @@ static int do_strip(struct gfs2_inode *ip, struct buffer_head *dibh, | |||
778 | gfs2_free_data(ip, bstart, blen); | 778 | gfs2_free_data(ip, bstart, blen); |
779 | } | 779 | } |
780 | 780 | ||
781 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 781 | ip->i_inode.i_mtime.tv_sec = ip->i_inode.i_ctime.tv_sec = get_seconds(); |
782 | 782 | ||
783 | gfs2_dinode_out(ip, dibh->b_data); | 783 | gfs2_dinode_out(ip, dibh->b_data); |
784 | 784 | ||
@@ -853,7 +853,7 @@ static int do_grow(struct gfs2_inode *ip, u64 size) | |||
853 | } | 853 | } |
854 | 854 | ||
855 | ip->i_di.di_size = size; | 855 | ip->i_di.di_size = size; |
856 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 856 | ip->i_inode.i_mtime.tv_sec = ip->i_inode.i_ctime.tv_sec = get_seconds(); |
857 | 857 | ||
858 | error = gfs2_meta_inode_buffer(ip, &dibh); | 858 | error = gfs2_meta_inode_buffer(ip, &dibh); |
859 | if (error) | 859 | if (error) |
@@ -968,7 +968,7 @@ static int trunc_start(struct gfs2_inode *ip, u64 size) | |||
968 | 968 | ||
969 | if (gfs2_is_stuffed(ip)) { | 969 | if (gfs2_is_stuffed(ip)) { |
970 | ip->i_di.di_size = size; | 970 | ip->i_di.di_size = size; |
971 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 971 | ip->i_inode.i_mtime.tv_sec = ip->i_inode.i_ctime.tv_sec = get_seconds(); |
972 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); | 972 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
973 | gfs2_dinode_out(ip, dibh->b_data); | 973 | gfs2_dinode_out(ip, dibh->b_data); |
974 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + size); | 974 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + size); |
@@ -980,7 +980,7 @@ static int trunc_start(struct gfs2_inode *ip, u64 size) | |||
980 | 980 | ||
981 | if (!error) { | 981 | if (!error) { |
982 | ip->i_di.di_size = size; | 982 | ip->i_di.di_size = size; |
983 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 983 | ip->i_inode.i_mtime.tv_sec = ip->i_inode.i_ctime.tv_sec = get_seconds(); |
984 | ip->i_di.di_flags |= GFS2_DIF_TRUNC_IN_PROG; | 984 | ip->i_di.di_flags |= GFS2_DIF_TRUNC_IN_PROG; |
985 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); | 985 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
986 | gfs2_dinode_out(ip, dibh->b_data); | 986 | gfs2_dinode_out(ip, dibh->b_data); |
@@ -1053,7 +1053,7 @@ static int trunc_end(struct gfs2_inode *ip) | |||
1053 | ip->i_num.no_addr; | 1053 | ip->i_num.no_addr; |
1054 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); | 1054 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); |
1055 | } | 1055 | } |
1056 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 1056 | ip->i_inode.i_mtime.tv_sec = ip->i_inode.i_ctime.tv_sec = get_seconds(); |
1057 | ip->i_di.di_flags &= ~GFS2_DIF_TRUNC_IN_PROG; | 1057 | ip->i_di.di_flags &= ~GFS2_DIF_TRUNC_IN_PROG; |
1058 | 1058 | ||
1059 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); | 1059 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |