mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
7c12f29650
commit
f0e2d93c29
31 changed files with 122 additions and 138 deletions
|
@ -493,7 +493,7 @@ xfs_dir2_grow_inode(
|
|||
args->firstblock, args->total,
|
||||
&mapp[mapi], &nmap, args->flist,
|
||||
NULL))) {
|
||||
kmem_free(mapp, sizeof(*mapp) * count);
|
||||
kmem_free(mapp);
|
||||
return error;
|
||||
}
|
||||
if (nmap < 1)
|
||||
|
@ -525,14 +525,14 @@ xfs_dir2_grow_inode(
|
|||
mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount !=
|
||||
bno + count) {
|
||||
if (mapp != &map)
|
||||
kmem_free(mapp, sizeof(*mapp) * count);
|
||||
kmem_free(mapp);
|
||||
return XFS_ERROR(ENOSPC);
|
||||
}
|
||||
/*
|
||||
* Done with the temporary mapping table.
|
||||
*/
|
||||
if (mapp != &map)
|
||||
kmem_free(mapp, sizeof(*mapp) * count);
|
||||
kmem_free(mapp);
|
||||
*dbp = xfs_dir2_da_to_db(mp, (xfs_dablk_t)bno);
|
||||
/*
|
||||
* Update file's size if this is the data space and it grew.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue