aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mru_cache.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2008-05-19 02:31:57 -0400
committerNiv Sardi <xaiki@debian.org>2008-07-28 02:58:07 -0400
commitf0e2d93c29dc39ffd24cac180a19d48f700c0706 (patch)
tree5bfac66c6a5cda98373eea222834a37877a590f9 /fs/xfs/xfs_mru_cache.c
parent7c12f296500e1157872ef45b3f3bb06b4b73f1c1 (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_mru_cache.c')
-rw-r--r--fs/xfs/xfs_mru_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_mru_cache.c b/fs/xfs/xfs_mru_cache.c
index a0b2c0a2589a..26d14a1e0e14 100644
--- a/fs/xfs/xfs_mru_cache.c
+++ b/fs/xfs/xfs_mru_cache.c
@@ -382,9 +382,9 @@ xfs_mru_cache_create(
382 382
383exit: 383exit:
384 if (err && mru && mru->lists) 384 if (err && mru && mru->lists)
385 kmem_free(mru->lists, mru->grp_count * sizeof(*mru->lists)); 385 kmem_free(mru->lists);
386 if (err && mru) 386 if (err && mru)
387 kmem_free(mru, sizeof(*mru)); 387 kmem_free(mru);
388 388
389 return err; 389 return err;
390} 390}
@@ -424,8 +424,8 @@ xfs_mru_cache_destroy(
424 424
425 xfs_mru_cache_flush(mru); 425 xfs_mru_cache_flush(mru);
426 426
427 kmem_free(mru->lists, mru->grp_count * sizeof(*mru->lists)); 427 kmem_free(mru->lists);
428 kmem_free(mru, sizeof(*mru)); 428 kmem_free(mru);
429} 429}
430 430
431/* 431/*