Merge tag 'signed-rpi-next' of git://github.com/agraf/u-boot
[oweals/u-boot.git] / fs / btrfs / extent-io.c
index feb91432e972489fae58e64693299b260f4023f7..66d0e1c7d65faf5a91da5ca985fdbdaace2825df 100644 (file)
@@ -1,13 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * BTRFS filesystem implementation for U-Boot
  *
  * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include "btrfs.h"
 #include <malloc.h>
+#include <memalign.h>
 
 u64 btrfs_read_extent_inline(struct btrfs_path *path,
                             struct btrfs_file_extent_item *extent, u64 offset,
@@ -90,7 +90,7 @@ u64 btrfs_read_extent_reg(struct btrfs_path *path,
                return size;
        }
 
-       cbuf = malloc(dlen > size ? clen + dlen : clen);
+       cbuf = malloc_cache_aligned(dlen > size ? clen + dlen : clen);
        if (!cbuf)
                return -1ULL;