xfs: improve kmem_realloc
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Apr 2016 23:47:01 +0000 (09:47 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 23:47:01 +0000 (09:47 +1000)
commit664b60f6babc98ee03c2ff15b9482cc8c5e15a83
tree195d42b776a4e311a912147722aa516e9e6d9048
parent9f27889f3a96ff356ac92688cc0c4be3935ae3af
xfs: improve kmem_realloc

Use krealloc to implement our realloc function.  This helps to avoid
new allocations if we are still in the slab bucket.  At least for the
bmap btree root that's actually the common case.

This also allows removing the now unused oldsize argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/kmem.c
fs/xfs/kmem.h
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_mount.c
This page took 0.028904 seconds and 5 git commands to generate.