mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
fs: btrfs: Add missing cache aligned allocation
The superblock buffer must be cache aligned, since it might be used in DMA context, allocate it using ALLOC_CACHE_ALIGN_BUFFER() just like it was done in btrfs_read_superblock() and read_tree_node(). This fixes this output on boot and non-working btrfs on iMX53: CACHE: Misaligned operation at range [ced299d0, ced2a9d0] Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Behún <marek.behun@nic.cz> Cc: Qu Wenruo <wqu@suse.com> Reviewed-by: Marek Behún <marek.behun@nic.cz>
This commit is contained in:
parent
53ba2c21c2
commit
9e8bb07885
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ error_out:
|
||||||
int btrfs_read_dev_super(struct blk_desc *desc, struct disk_partition *part,
|
int btrfs_read_dev_super(struct blk_desc *desc, struct disk_partition *part,
|
||||||
struct btrfs_super_block *sb)
|
struct btrfs_super_block *sb)
|
||||||
{
|
{
|
||||||
char tmp[BTRFS_SUPER_INFO_SIZE];
|
ALLOC_CACHE_ALIGN_BUFFER(char, tmp, BTRFS_SUPER_INFO_SIZE);
|
||||||
struct btrfs_super_block *buf = (struct btrfs_super_block *)tmp;
|
struct btrfs_super_block *buf = (struct btrfs_super_block *)tmp;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue