diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index a798e7c15fb5..35e7f34ee188 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -756,8 +756,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode, orig_mlen == map->m_len) goto found; - if (flags & EXT4_GET_BLOCKS_QUERY_LAST_IN_LEAF) - map->m_len = orig_mlen; + map->m_len = orig_mlen; } /* * In the query cache no-wait mode, nothing we can do more if we