diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 06:19:28 -0500 |
---|---|---|
committer | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 06:19:28 -0500 |
commit | d4e9c4c3bf861ef2ac96e0de659c75a00da92b28 (patch) | |
tree | 925ececc725ad5180b9253f732b50c51bfa0754d /fs/gfs2/ops_inode.c | |
parent | b96ca4fa4e3b510d528a093a5bac0befbc2ba46d (diff) |
[GFS2] Add an additional argument to gfs2_trans_add_bh()
This adds an extra argument to gfs2_trans_add_bh() to indicate whether the
bh being added to the transaction is metadata or data. Its currently unused
since all existing callers set it to 1 (metadata) but following patches will
make use of it.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_inode.c')
-rw-r--r-- | fs/gfs2/ops_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index d0f90b88380c..89417a6cb723 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
@@ -839,7 +839,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, | |||
839 | if (error) | 839 | if (error) |
840 | goto out_end_trans; | 840 | goto out_end_trans; |
841 | ip->i_di.di_ctime = get_seconds(); | 841 | ip->i_di.di_ctime = get_seconds(); |
842 | gfs2_trans_add_bh(ip->i_gl, dibh); | 842 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
843 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 843 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
844 | brelse(dibh); | 844 | brelse(dibh); |
845 | } | 845 | } |
@@ -1043,7 +1043,7 @@ static int setattr_chown(struct inode *inode, struct iattr *attr) | |||
1043 | gfs2_assert_warn(sdp, !error); | 1043 | gfs2_assert_warn(sdp, !error); |
1044 | gfs2_inode_attr_out(ip); | 1044 | gfs2_inode_attr_out(ip); |
1045 | 1045 | ||
1046 | gfs2_trans_add_bh(ip->i_gl, dibh); | 1046 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
1047 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 1047 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
1048 | brelse(dibh); | 1048 | brelse(dibh); |
1049 | 1049 | ||