aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 9bec432e2d26..33bbe8467bd6 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -1414,8 +1414,7 @@ ext4_ext_next_allocated_block(struct ext4_ext_path *path)
1414 * ext4_ext_next_leaf_block: 1414 * ext4_ext_next_leaf_block:
1415 * returns first allocated block from next leaf or EXT_MAX_BLOCKS 1415 * returns first allocated block from next leaf or EXT_MAX_BLOCKS
1416 */ 1416 */
1417static ext4_lblk_t ext4_ext_next_leaf_block(struct inode *inode, 1417static ext4_lblk_t ext4_ext_next_leaf_block(struct ext4_ext_path *path)
1418 struct ext4_ext_path *path)
1419{ 1418{
1420 int depth; 1419 int depth;
1421 1420
@@ -1734,7 +1733,7 @@ int ext4_ext_insert_extent(handle_t *handle, struct inode *inode,
1734 fex = EXT_LAST_EXTENT(eh); 1733 fex = EXT_LAST_EXTENT(eh);
1735 next = EXT_MAX_BLOCKS; 1734 next = EXT_MAX_BLOCKS;
1736 if (le32_to_cpu(newext->ee_block) > le32_to_cpu(fex->ee_block)) 1735 if (le32_to_cpu(newext->ee_block) > le32_to_cpu(fex->ee_block))
1737 next = ext4_ext_next_leaf_block(inode, path); 1736 next = ext4_ext_next_leaf_block(path);
1738 if (next != EXT_MAX_BLOCKS) { 1737 if (next != EXT_MAX_BLOCKS) {
1739 ext_debug("next leaf block - %d\n", next); 1738 ext_debug("next leaf block - %d\n", next);
1740 BUG_ON(npath != NULL); 1739 BUG_ON(npath != NULL);