aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-11-01 16:05:38 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:34:30 -0500
commitbfded27ba010d1c3b0aa3843f97dc9b80de751be (patch)
tree55d0009b96ae00188fa4ab546cdcad5686a3fdde /fs/gfs2/inode.c
parenta9583c7983cbba9726bfe64ee46613d654fc9e26 (diff)
[GFS2] Shrink gfs2_inode (8) - i_vn
This shrinks the size of the gfs2_inode by 8 bytes by replacing the version counter with a one bit valid/invalid flag. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index f6177fc68320..e467780837e6 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -145,7 +145,7 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, struct gfs2_inum_host *i
145 if (unlikely(error)) 145 if (unlikely(error))
146 goto fail_put; 146 goto fail_put;
147 147
148 ip->i_vn = ip->i_gl->gl_vn - 1; 148 set_bit(GIF_INVALID, &ip->i_flags);
149 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); 149 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh);
150 if (unlikely(error)) 150 if (unlikely(error))
151 goto fail_iopen; 151 goto fail_iopen;
@@ -242,7 +242,7 @@ int gfs2_inode_refresh(struct gfs2_inode *ip)
242 242
243 error = gfs2_dinode_in(ip, dibh->b_data); 243 error = gfs2_dinode_in(ip, dibh->b_data);
244 brelse(dibh); 244 brelse(dibh);
245 ip->i_vn = ip->i_gl->gl_vn; 245 clear_bit(GIF_INVALID, &ip->i_flags);
246 246
247 return error; 247 return error;
248} 248}