fs: ext4: cache extent data
[project/bcm63xx/u-boot.git] / fs / ext4 / ext4_write.c
index 4eb77c327ef32a9bd4a6f98280b3c660d85e12e6..95ffa3dfad514523a2b26f5ebb89c2cd5a394c60 100644 (file)
@@ -479,7 +479,7 @@ static int ext4fs_delete_file(int inodeno)
 
        /* release data blocks */
        for (i = 0; i < no_blocks; i++) {
-               blknr = read_allocated_block(&inode, i);
+               blknr = read_allocated_block(&inode, i, NULL);
                if (blknr == 0)
                        continue;
                if (blknr < 0)
@@ -695,7 +695,7 @@ void ext4fs_deinit(void)
                ext4fs_read_inode(ext4fs_root, EXT2_JOURNAL_INO,
                                  &inode_journal);
                blknr = read_allocated_block(&inode_journal,
-                                       EXT2_JOURNAL_SUPERBLOCK);
+                                       EXT2_JOURNAL_SUPERBLOCK, NULL);
                ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz,
                               temp_buff);
                jsb = (struct journal_superblock_t *)temp_buff;
@@ -776,7 +776,7 @@ static int ext4fs_write_file(struct ext2_inode *file_inode,
                long int blknr;
                int blockend = fs->blksz;
                int skipfirst = 0;
-               blknr = read_allocated_block(file_inode, i);
+               blknr = read_allocated_block(file_inode, i, NULL);
                if (blknr <= 0)
                        return -1;