1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00

ext4: remove unnecessary duplicate check in ext4_map_blocks()

The previous lines ensure that EXT4_GET_BLOCKS_QUERY_LAST_IN_LEAF is
set so remove this duplicate check.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://patch.msgid.link/aDCdjUhpzxB64vkD@stanley.mountain
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Dan Carpenter 2025-05-23 19:08:45 +03:00 committed by Theodore Ts'o
parent b6f3801727
commit c5da1f6694

View File

@ -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