aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2007-12-12 12:44:41 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2008-01-25 03:15:16 -0500
commitc3f60b6e3a7667f78a63b15cf09655ecfca757fc (patch)
tree8dbe2656098c1fa69a9e149248533e1fba131ac5 /fs/gfs2/super.c
parentb3513fca7e41965d85125c9770ce5f8fd4ff509a (diff)
[GFS2] Eliminate the no longer needed sd_statfs_mutex
This patch eliminates the unneeded sd_statfs_mutex mutex but preserves the ordering as discussed. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 22e09660d648..5d0017d313a3 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -688,9 +688,7 @@ void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,
688 if (error) 688 if (error)
689 return; 689 return;
690 690
691 mutex_lock(&sdp->sd_statfs_mutex);
692 gfs2_trans_add_bh(l_ip->i_gl, l_bh, 1); 691 gfs2_trans_add_bh(l_ip->i_gl, l_bh, 1);
693 mutex_unlock(&sdp->sd_statfs_mutex);
694 692
695 spin_lock(&sdp->sd_statfs_spin); 693 spin_lock(&sdp->sd_statfs_spin);
696 l_sc->sc_total += total; 694 l_sc->sc_total += total;
@@ -738,9 +736,7 @@ int gfs2_statfs_sync(struct gfs2_sbd *sdp)
738 if (error) 736 if (error)
739 goto out_bh2; 737 goto out_bh2;
740 738
741 mutex_lock(&sdp->sd_statfs_mutex);
742 gfs2_trans_add_bh(l_ip->i_gl, l_bh, 1); 739 gfs2_trans_add_bh(l_ip->i_gl, l_bh, 1);
743 mutex_unlock(&sdp->sd_statfs_mutex);
744 740
745 spin_lock(&sdp->sd_statfs_spin); 741 spin_lock(&sdp->sd_statfs_spin);
746 m_sc->sc_total += l_sc->sc_total; 742 m_sc->sc_total += l_sc->sc_total;