aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-10-31 15:07:05 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:33:54 -0500
commit539e5d6b7ae8612c0393fe940d2da5b591318d3d (patch)
tree3ae6afd9c47a9a08e87877988d1c47bc060d71bf /fs/gfs2/inode.c
parent9c9ab3d5414653bfe5e5b9f4dfdaab0c6ab17196 (diff)
[GFS2] Change argument of gfs2_dinode_out
Everywhere this was called, a struct gfs2_inode was available, but despite that, it was always called with a struct gfs2_dinode as an argument. By making this change it paves the way to start eliminating fields duplicated between the kernel's struct inode and the struct gfs2_dinode. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index fb969302f181..b861ddba8688 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -338,7 +338,7 @@ int gfs2_change_nlink(struct gfs2_inode *ip, int diff)
338 ip->i_inode.i_nlink = nlink; 338 ip->i_inode.i_nlink = nlink;
339 339
340 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 340 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
341 gfs2_dinode_out(&ip->i_di, dibh->b_data); 341 gfs2_dinode_out(ip, dibh->b_data);
342 brelse(dibh); 342 brelse(dibh);
343 mark_inode_dirty(&ip->i_inode); 343 mark_inode_dirty(&ip->i_inode);
344 344
@@ -792,7 +792,7 @@ static int link_dinode(struct gfs2_inode *dip, const struct qstr *name,
792 goto fail_end_trans; 792 goto fail_end_trans;
793 ip->i_di.di_nlink = 1; 793 ip->i_di.di_nlink = 1;
794 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 794 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
795 gfs2_dinode_out(&ip->i_di, dibh->b_data); 795 gfs2_dinode_out(ip, dibh->b_data);
796 brelse(dibh); 796 brelse(dibh);
797 return 0; 797 return 0;
798 798
@@ -1349,7 +1349,7 @@ __gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr)
1349 gfs2_inode_attr_out(ip); 1349 gfs2_inode_attr_out(ip);
1350 1350
1351 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 1351 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
1352 gfs2_dinode_out(&ip->i_di, dibh->b_data); 1352 gfs2_dinode_out(ip, dibh->b_data);
1353 brelse(dibh); 1353 brelse(dibh);
1354 } 1354 }
1355 return error; 1355 return error;