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/super.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/super.c')
-rw-r--r-- | fs/gfs2/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index d37f203e133b..cab7ab5fb506 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c | |||
@@ -608,7 +608,7 @@ void gfs2_statfs_change(struct gfs2_sbd *sdp, int64_t total, int64_t free, | |||
608 | return; | 608 | return; |
609 | 609 | ||
610 | down(&sdp->sd_statfs_mutex); | 610 | down(&sdp->sd_statfs_mutex); |
611 | gfs2_trans_add_bh(l_ip->i_gl, l_bh); | 611 | gfs2_trans_add_bh(l_ip->i_gl, l_bh, 1); |
612 | up(&sdp->sd_statfs_mutex); | 612 | up(&sdp->sd_statfs_mutex); |
613 | 613 | ||
614 | spin_lock(&sdp->sd_statfs_spin); | 614 | spin_lock(&sdp->sd_statfs_spin); |
@@ -659,7 +659,7 @@ int gfs2_statfs_sync(struct gfs2_sbd *sdp) | |||
659 | goto out_bh2; | 659 | goto out_bh2; |
660 | 660 | ||
661 | down(&sdp->sd_statfs_mutex); | 661 | down(&sdp->sd_statfs_mutex); |
662 | gfs2_trans_add_bh(l_ip->i_gl, l_bh); | 662 | gfs2_trans_add_bh(l_ip->i_gl, l_bh, 1); |
663 | up(&sdp->sd_statfs_mutex); | 663 | up(&sdp->sd_statfs_mutex); |
664 | 664 | ||
665 | spin_lock(&sdp->sd_statfs_spin); | 665 | spin_lock(&sdp->sd_statfs_spin); |
@@ -671,7 +671,7 @@ int gfs2_statfs_sync(struct gfs2_sbd *sdp) | |||
671 | 0, sizeof(struct gfs2_statfs_change)); | 671 | 0, sizeof(struct gfs2_statfs_change)); |
672 | spin_unlock(&sdp->sd_statfs_spin); | 672 | spin_unlock(&sdp->sd_statfs_spin); |
673 | 673 | ||
674 | gfs2_trans_add_bh(m_ip->i_gl, m_bh); | 674 | gfs2_trans_add_bh(m_ip->i_gl, m_bh, 1); |
675 | gfs2_statfs_change_out(m_sc, m_bh->b_data + sizeof(struct gfs2_dinode)); | 675 | gfs2_statfs_change_out(m_sc, m_bh->b_data + sizeof(struct gfs2_dinode)); |
676 | 676 | ||
677 | gfs2_trans_end(sdp); | 677 | gfs2_trans_end(sdp); |