aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2007-10-11 03:43:56 -0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-07 00:47:45 -0500
commit007c61c68640ea17c036785b698d05da67b4365e (patch)
treed4d4bc3d9268d174f42f45dc67844905f0e5933d /fs/xfs/xfs_mount.c
parent36e41eebdafc8b5fabdf66f59d0d43b0b60f0fdb (diff)
[XFS] Remove spin.h
remove spinlock init abstraction macro in spin.h, remove the callers, and remove the file. Move no-op spinlock_destroy to xfs_linux.h Cleanup spinlock locals in xfs_mount.c SGI-PV: 970382 SGI-Modid: xfs-linux-melb:xfs-kern:29751a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 6bc92c85733f..6115f371663d 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -136,8 +136,8 @@ xfs_mount_init(void)
136 mp->m_flags |= XFS_MOUNT_NO_PERCPU_SB; 136 mp->m_flags |= XFS_MOUNT_NO_PERCPU_SB;
137 } 137 }
138 138
139 spinlock_init(&mp->m_ail_lock, "xfs_ail"); 139 spin_lock_init(&mp->m_ail_lock);
140 spinlock_init(&mp->m_sb_lock, "xfs_sb"); 140 spin_lock_init(&mp->m_sb_lock);
141 mutex_init(&mp->m_ilock); 141 mutex_init(&mp->m_ilock);
142 mutex_init(&mp->m_growlock); 142 mutex_init(&mp->m_growlock);
143 /* 143 /*
@@ -616,7 +616,7 @@ xfs_mount_common(xfs_mount_t *mp, xfs_sb_t *sbp)
616 int i; 616 int i;
617 617
618 mp->m_agfrotor = mp->m_agirotor = 0; 618 mp->m_agfrotor = mp->m_agirotor = 0;
619 spinlock_init(&mp->m_agirotor_lock, "m_agirotor_lock"); 619 spin_lock_init(&mp->m_agirotor_lock);
620 mp->m_maxagi = mp->m_sb.sb_agcount; 620 mp->m_maxagi = mp->m_sb.sb_agcount;
621 mp->m_blkbit_log = sbp->sb_blocklog + XFS_NBBYLOG; 621 mp->m_blkbit_log = sbp->sb_blocklog + XFS_NBBYLOG;
622 mp->m_blkbb_log = sbp->sb_blocklog - BBSHIFT; 622 mp->m_blkbb_log = sbp->sb_blocklog - BBSHIFT;
@@ -1916,7 +1916,6 @@ xfs_icsb_cpu_notify(
1916{ 1916{
1917 xfs_icsb_cnts_t *cntp; 1917 xfs_icsb_cnts_t *cntp;
1918 xfs_mount_t *mp; 1918 xfs_mount_t *mp;
1919 int s;
1920 1919
1921 mp = (xfs_mount_t *)container_of(nfb, xfs_mount_t, m_icsb_notifier); 1920 mp = (xfs_mount_t *)container_of(nfb, xfs_mount_t, m_icsb_notifier);
1922 cntp = (xfs_icsb_cnts_t *) 1921 cntp = (xfs_icsb_cnts_t *)
@@ -2190,7 +2189,6 @@ xfs_icsb_sync_counters_flags(
2190 int flags) 2189 int flags)
2191{ 2190{
2192 xfs_icsb_cnts_t cnt; 2191 xfs_icsb_cnts_t cnt;
2193 int s;
2194 2192
2195 /* Pass 1: lock all counters */ 2193 /* Pass 1: lock all counters */
2196 if ((flags & XFS_ICSB_SB_LOCKED) == 0) 2194 if ((flags & XFS_ICSB_SB_LOCKED) == 0)
@@ -2248,7 +2246,6 @@ xfs_icsb_balance_counter(
2248{ 2246{
2249 uint64_t count, resid; 2247 uint64_t count, resid;
2250 int weight = num_online_cpus(); 2248 int weight = num_online_cpus();
2251 int s;
2252 uint64_t min = (uint64_t)min_per_cpu; 2249 uint64_t min = (uint64_t)min_per_cpu;
2253 2250
2254 if (!(flags & XFS_ICSB_SB_LOCKED)) 2251 if (!(flags & XFS_ICSB_SB_LOCKED))
@@ -2298,7 +2295,7 @@ xfs_icsb_modify_counters(
2298{ 2295{
2299 xfs_icsb_cnts_t *icsbp; 2296 xfs_icsb_cnts_t *icsbp;
2300 long long lcounter; /* long counter for 64 bit fields */ 2297 long long lcounter; /* long counter for 64 bit fields */
2301 int cpu, ret = 0, s; 2298 int cpu, ret = 0;
2302 2299
2303 might_sleep(); 2300 might_sleep();
2304again: 2301again: