aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Chinner <dgc@sgi.com>2008-04-09 22:19:56 -0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-04-17 21:52:43 -0400
commit36fbe6e6bd5408b09341043dfece978b4a7a0f34 (patch)
tree0d04ed7a9906e2a464f660c6c6420f42549b1056
parenta414047fc97aea7db6237176ce00013117839cd5 (diff)
[XFS] xfs_icsb_counter_disabled() never returns an error.
Mark it void. SGI-PV: 980084 SGI-Modid: xfs-linux-melb:xfs-kern:30782a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Niv Sardi <xaiki@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
-rw-r--r--fs/xfs/xfs_mount.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index c2aafeb8c6cb..eb348c168505 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -58,7 +58,7 @@ STATIC void xfs_icsb_balance_counter(xfs_mount_t *, xfs_sb_field_t,
58STATIC void xfs_icsb_sync_counters(xfs_mount_t *); 58STATIC void xfs_icsb_sync_counters(xfs_mount_t *);
59STATIC int xfs_icsb_modify_counters(xfs_mount_t *, xfs_sb_field_t, 59STATIC int xfs_icsb_modify_counters(xfs_mount_t *, xfs_sb_field_t,
60 int64_t, int); 60 int64_t, int);
61STATIC int xfs_icsb_disable_counter(xfs_mount_t *, xfs_sb_field_t); 61STATIC void xfs_icsb_disable_counter(xfs_mount_t *, xfs_sb_field_t);
62 62
63#else 63#else
64 64
@@ -2183,7 +2183,7 @@ xfs_icsb_counter_disabled(
2183 return test_bit(field, &mp->m_icsb_counters); 2183 return test_bit(field, &mp->m_icsb_counters);
2184} 2184}
2185 2185
2186STATIC int 2186STATIC void
2187xfs_icsb_disable_counter( 2187xfs_icsb_disable_counter(
2188 xfs_mount_t *mp, 2188 xfs_mount_t *mp,
2189 xfs_sb_field_t field) 2189 xfs_sb_field_t field)
@@ -2201,7 +2201,7 @@ xfs_icsb_disable_counter(
2201 * the m_icsb_mutex. 2201 * the m_icsb_mutex.
2202 */ 2202 */
2203 if (xfs_icsb_counter_disabled(mp, field)) 2203 if (xfs_icsb_counter_disabled(mp, field))
2204 return 0; 2204 return;
2205 2205
2206 xfs_icsb_lock_all_counters(mp); 2206 xfs_icsb_lock_all_counters(mp);
2207 if (!test_and_set_bit(field, &mp->m_icsb_counters)) { 2207 if (!test_and_set_bit(field, &mp->m_icsb_counters)) {
@@ -2224,8 +2224,6 @@ xfs_icsb_disable_counter(
2224 } 2224 }
2225 2225
2226 xfs_icsb_unlock_all_counters(mp); 2226 xfs_icsb_unlock_all_counters(mp);
2227
2228 return 0;
2229} 2227}
2230 2228
2231STATIC void 2229STATIC void