]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/ubifs/super.c
mtd/nand/ubi: assortment of alignment fixes
[karo-tx-uboot.git] / fs / ubifs / super.c
index 10f8fff0be6f7c1cb4bbecdfc673174901c72e28..0bf52db0cef5c1ce0ecb271ab234e5cd5a174d03 100644 (file)
@@ -57,7 +57,8 @@ struct inode *iget_locked(struct super_block *sb, unsigned long ino)
 {
        struct inode *inode;
 
-       inode = (struct inode *)malloc(sizeof(struct ubifs_inode));
+       inode = (struct inode *)malloc_cache_aligned(
+                       sizeof(struct ubifs_inode));
        if (inode) {
                inode->i_ino = ino;
                inode->i_sb = sb;
@@ -104,7 +105,7 @@ void iput(struct inode *inode)
        /*
         * Allocate and use new inode
         */
-       ino = (struct inode *)malloc(sizeof(struct ubifs_inode));
+       ino = (struct inode *)malloc_cache_aligned(sizeof(struct ubifs_inode));
        memcpy(ino, inode, sizeof(struct ubifs_inode));
 
        /*