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_dir2.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_dir2.c')
-rw-r--r-- | fs/xfs/xfs_dir2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index 7cb26529766b..0284af1734bd 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c | |||
@@ -493,7 +493,7 @@ xfs_dir2_grow_inode( | |||
493 | args->firstblock, args->total, | 493 | args->firstblock, args->total, |
494 | &mapp[mapi], &nmap, args->flist, | 494 | &mapp[mapi], &nmap, args->flist, |
495 | NULL))) { | 495 | NULL))) { |
496 | kmem_free(mapp, sizeof(*mapp) * count); | 496 | kmem_free(mapp); |
497 | return error; | 497 | return error; |
498 | } | 498 | } |
499 | if (nmap < 1) | 499 | if (nmap < 1) |
@@ -525,14 +525,14 @@ xfs_dir2_grow_inode( | |||
525 | mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != | 525 | mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != |
526 | bno + count) { | 526 | bno + count) { |
527 | if (mapp != &map) | 527 | if (mapp != &map) |
528 | kmem_free(mapp, sizeof(*mapp) * count); | 528 | kmem_free(mapp); |
529 | return XFS_ERROR(ENOSPC); | 529 | return XFS_ERROR(ENOSPC); |
530 | } | 530 | } |
531 | /* | 531 | /* |
532 | * Done with the temporary mapping table. | 532 | * Done with the temporary mapping table. |
533 | */ | 533 | */ |
534 | if (mapp != &map) | 534 | if (mapp != &map) |
535 | kmem_free(mapp, sizeof(*mapp) * count); | 535 | kmem_free(mapp); |
536 | *dbp = xfs_dir2_da_to_db(mp, (xfs_dablk_t)bno); | 536 | *dbp = xfs_dir2_da_to_db(mp, (xfs_dablk_t)bno); |
537 | /* | 537 | /* |
538 | * Update file's size if this is the data space and it grew. | 538 | * Update file's size if this is the data space and it grew. |