summaryrefslogtreecommitdiffstats
path: root/fs/ext4/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/dev.c')
-rw-r--r--fs/ext4/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/dev.c b/fs/ext4/dev.c
index fb62f241e4..9e85228eda 100644
--- a/fs/ext4/dev.c
+++ b/fs/ext4/dev.c
@@ -62,7 +62,7 @@ int ext4fs_set_blk_dev(block_dev_desc_t *rbdd, int part)
int ext4fs_devread(int sector, int byte_offset, int byte_len, char *buf)
{
- char sec_buf[SECTOR_SIZE];
+ ALLOC_CACHE_ALIGN_BUFFER(char, sec_buf, SECTOR_SIZE);
unsigned block_len;
/* Check partition boundaries */
@@ -107,7 +107,7 @@ int ext4fs_devread(int sector, int byte_offset, int byte_len, char *buf)
block_len = byte_len & ~(SECTOR_SIZE - 1);
if (block_len == 0) {
- u8 p[SECTOR_SIZE];
+ ALLOC_CACHE_ALIGN_BUFFER(u8, p, SECTOR_SIZE);
block_len = SECTOR_SIZE;
ext4fs_block_dev_desc->block_read(ext4fs_block_dev_desc->dev,
OpenPOWER on IntegriCloud