diff options
Diffstat (limited to 'fs/ext4/ext4_common.h')
| -rw-r--r-- | fs/ext4/ext4_common.h | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h index 801b8b848..0af625db2 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -55,7 +55,12 @@  #define SUPERBLOCK_SIZE	1024  #define F_FILE			1 -#define zalloc(size) calloc(1, size) +static inline void *zalloc(size_t size) +{ +	void *p = memalign(ARCH_DMA_MINALIGN, size); +	memset(p, 0, size); +	return p; +}  extern unsigned long part_offset;  int ext4fs_read_inode(struct ext2_data *data, int ino, |