diff options
| author | Michał Majewicz <mmajewicz@users.noreply.github.com> | 2016-08-19 10:41:47 +0200 |
|---|---|---|
| committer | Michał Majewicz <mmajewicz@users.noreply.github.com> | 2016-08-19 11:49:59 +0200 |
| commit | 2577ef35e81f7e8064cf8dd5c23c44efe1407dc5 (patch) | |
| tree | 8e67b4ea30113f511189afc06f344916c32b9dbd /include | |
| parent | 7f35ecb424c1990684c2d1a922467f1dde69c952 (diff) | |
ext4: easy malloc/calloc/realloc/free substitution
Diffstat (limited to 'include')
| -rw-r--r-- | include/ext4_types.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/ext4_types.h b/include/ext4_types.h index 4f934f2..23ea900 100644 --- a/include/ext4_types.h +++ b/include/ext4_types.h @@ -1004,6 +1004,24 @@ struct jbd_sb { } #endif + +#ifdef USE_OTHER_MALLOC + +#define ext4_malloc pool_malloc +#define ext4_calloc pool_calloc +#define ext4_realloc pool_realloc +#define ext4_free pool_free + +#else + +#define ext4_malloc malloc +#define ext4_calloc calloc +#define ext4_realloc realloc +#define ext4_free free + +#endif + + #endif /* EXT4_TYPES_H_ */ /** |
