aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_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/ops_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/ops_inode.c')
-rw-r--r--fs/gfs2/ops_inode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c
index ef6e5ed70e94..bd268852c674 100644
--- a/fs/gfs2/ops_inode.c
+++ b/fs/gfs2/ops_inode.c
@@ -339,7 +339,7 @@ static int gfs2_symlink(struct inode *dir, struct dentry *dentry,
339 error = gfs2_meta_inode_buffer(ip, &dibh); 339 error = gfs2_meta_inode_buffer(ip, &dibh);
340 340
341 if (!gfs2_assert_withdraw(sdp, !error)) { 341 if (!gfs2_assert_withdraw(sdp, !error)) {
342 gfs2_dinode_out(&ip->i_di, dibh->b_data); 342 gfs2_dinode_out(ip, dibh->b_data);
343 memcpy(dibh->b_data + sizeof(struct gfs2_dinode), symname, 343 memcpy(dibh->b_data + sizeof(struct gfs2_dinode), symname,
344 size); 344 size);
345 brelse(dibh); 345 brelse(dibh);
@@ -414,7 +414,7 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, int mode)
414 gfs2_inum_out(&dip->i_num, &dent->de_inum); 414 gfs2_inum_out(&dip->i_num, &dent->de_inum);
415 dent->de_type = cpu_to_be16(DT_DIR); 415 dent->de_type = cpu_to_be16(DT_DIR);
416 416
417 gfs2_dinode_out(&ip->i_di, di); 417 gfs2_dinode_out(ip, di);
418 418
419 brelse(dibh); 419 brelse(dibh);
420 } 420 }
@@ -541,7 +541,7 @@ static int gfs2_mknod(struct inode *dir, struct dentry *dentry, int mode,
541 error = gfs2_meta_inode_buffer(ip, &dibh); 541 error = gfs2_meta_inode_buffer(ip, &dibh);
542 542
543 if (!gfs2_assert_withdraw(sdp, !error)) { 543 if (!gfs2_assert_withdraw(sdp, !error)) {
544 gfs2_dinode_out(&ip->i_di, dibh->b_data); 544 gfs2_dinode_out(ip, dibh->b_data);
545 brelse(dibh); 545 brelse(dibh);
546 } 546 }
547 547
@@ -762,7 +762,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry,
762 goto out_end_trans; 762 goto out_end_trans;
763 ip->i_di.di_ctime = get_seconds(); 763 ip->i_di.di_ctime = get_seconds();
764 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 764 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
765 gfs2_dinode_out(&ip->i_di, dibh->b_data); 765 gfs2_dinode_out(ip, dibh->b_data);
766 brelse(dibh); 766 brelse(dibh);
767 } 767 }
768 768
@@ -949,7 +949,7 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
949 gfs2_inode_attr_out(ip); 949 gfs2_inode_attr_out(ip);
950 950
951 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 951 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
952 gfs2_dinode_out(&ip->i_di, dibh->b_data); 952 gfs2_dinode_out(ip, dibh->b_data);
953 brelse(dibh); 953 brelse(dibh);
954 954
955 if (ouid != NO_QUOTA_CHANGE || ogid != NO_QUOTA_CHANGE) { 955 if (ouid != NO_QUOTA_CHANGE || ogid != NO_QUOTA_CHANGE) {