diff options
author | Wang, Yalin <Yalin.Wang@sonymobile.com> | 2015-02-01 23:54:18 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-01 23:54:18 +0100 |
commit | f3d215526e6955028dfbbfd446db8716275fb0c7 (patch) | |
tree | 54746620d411e8ea2da4757615044c931e94813f /fs/xfs/kmem.h | |
parent | xfs: factor out a xfs_update_prealloc_flags() helper (diff) | |
download | linux-f3d215526e6955028dfbbfd446db8716275fb0c7.tar.xz linux-f3d215526e6955028dfbbfd446db8716275fb0c7.zip |
xfs: change kmem_free to use generic kvfree()
Change kmem_free to use kvfree() generic function, remove the
duplicated code.
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/kmem.h')
-rw-r--r-- | fs/xfs/kmem.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/kmem.h b/fs/xfs/kmem.h index 64db0e53edea..cc6b768fc068 100644 --- a/fs/xfs/kmem.h +++ b/fs/xfs/kmem.h @@ -63,7 +63,10 @@ kmem_flags_convert(xfs_km_flags_t flags) extern void *kmem_alloc(size_t, xfs_km_flags_t); extern void *kmem_zalloc_large(size_t size, xfs_km_flags_t); extern void *kmem_realloc(const void *, size_t, size_t, xfs_km_flags_t); -extern void kmem_free(const void *); +static inline void kmem_free(const void *ptr) +{ + kvfree(ptr); +} extern void *kmem_zalloc_greedy(size_t *, size_t, size_t); |