xfs: remove kmem_realloc()

Remove kmem_realloc() function and convert its users to use MM API
directly (krealloc())

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Carlos Maiolino
2020-08-26 14:05:56 -07:00
committed by Darrick J. Wong
parent f4d51dffc6
commit 771915c4f6
7 changed files with 8 additions and 32 deletions

View File

@@ -80,9 +80,9 @@ xfs_uuid_mount(
}
if (hole < 0) {
xfs_uuid_table = kmem_realloc(xfs_uuid_table,
xfs_uuid_table = krealloc(xfs_uuid_table,
(xfs_uuid_table_size + 1) * sizeof(*xfs_uuid_table),
0);
GFP_KERNEL | __GFP_NOFAIL);
hole = xfs_uuid_table_size++;
}
xfs_uuid_table[hole] = *uuid;