diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2008-05-19 02:31:57 -0400 |
---|---|---|
committer | Niv Sardi <xaiki@debian.org> | 2008-07-28 02:58:07 -0400 |
commit | f0e2d93c29dc39ffd24cac180a19d48f700c0706 (patch) | |
tree | 5bfac66c6a5cda98373eea222834a37877a590f9 /fs/xfs/xfs_mount.c | |
parent | 7c12f296500e1157872ef45b3f3bb06b4b73f1c1 (diff) |
[XFS] Remove unused arg from kmem_free()
kmem_free() function takes (ptr, size) arguments but doesn't actually use
second one.
This patch removes size argument from all callsites.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31050a
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 361c7a755a07..c63f410ccfaa 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -161,11 +161,8 @@ xfs_mount_free( | |||
161 | 161 | ||
162 | for (agno = 0; agno < mp->m_maxagi; agno++) | 162 | for (agno = 0; agno < mp->m_maxagi; agno++) |
163 | if (mp->m_perag[agno].pagb_list) | 163 | if (mp->m_perag[agno].pagb_list) |
164 | kmem_free(mp->m_perag[agno].pagb_list, | 164 | kmem_free(mp->m_perag[agno].pagb_list); |
165 | sizeof(xfs_perag_busy_t) * | 165 | kmem_free(mp->m_perag); |
166 | XFS_PAGB_NUM_SLOTS); | ||
167 | kmem_free(mp->m_perag, | ||
168 | sizeof(xfs_perag_t) * mp->m_sb.sb_agcount); | ||
169 | } | 166 | } |
170 | 167 | ||
171 | spinlock_destroy(&mp->m_ail_lock); | 168 | spinlock_destroy(&mp->m_ail_lock); |
@@ -176,11 +173,11 @@ xfs_mount_free( | |||
176 | XFS_QM_DONE(mp); | 173 | XFS_QM_DONE(mp); |
177 | 174 | ||
178 | if (mp->m_fsname != NULL) | 175 | if (mp->m_fsname != NULL) |
179 | kmem_free(mp->m_fsname, mp->m_fsname_len); | 176 | kmem_free(mp->m_fsname); |
180 | if (mp->m_rtname != NULL) | 177 | if (mp->m_rtname != NULL) |
181 | kmem_free(mp->m_rtname, strlen(mp->m_rtname) + 1); | 178 | kmem_free(mp->m_rtname); |
182 | if (mp->m_logname != NULL) | 179 | if (mp->m_logname != NULL) |
183 | kmem_free(mp->m_logname, strlen(mp->m_logname) + 1); | 180 | kmem_free(mp->m_logname); |
184 | 181 | ||
185 | xfs_icsb_destroy_counters(mp); | 182 | xfs_icsb_destroy_counters(mp); |
186 | } | 183 | } |
@@ -1265,9 +1262,8 @@ xfs_mountfs( | |||
1265 | error2: | 1262 | error2: |
1266 | for (agno = 0; agno < sbp->sb_agcount; agno++) | 1263 | for (agno = 0; agno < sbp->sb_agcount; agno++) |
1267 | if (mp->m_perag[agno].pagb_list) | 1264 | if (mp->m_perag[agno].pagb_list) |
1268 | kmem_free(mp->m_perag[agno].pagb_list, | 1265 | kmem_free(mp->m_perag[agno].pagb_list); |
1269 | sizeof(xfs_perag_busy_t) * XFS_PAGB_NUM_SLOTS); | 1266 | kmem_free(mp->m_perag); |
1270 | kmem_free(mp->m_perag, sbp->sb_agcount * sizeof(xfs_perag_t)); | ||
1271 | mp->m_perag = NULL; | 1267 | mp->m_perag = NULL; |
1272 | /* FALLTHROUGH */ | 1268 | /* FALLTHROUGH */ |
1273 | error1: | 1269 | error1: |