Commit 5718789d authored by Robin Dong's avatar Robin Dong Committed by Theodore Ts'o
Browse files

ext4: remove unused argument in ext4_ext_next_leaf_block



The argument "inode" in function ext4_ext_next_allocated_block looks useless,
so clean it.

Signed-off-by: default avatarRobin Dong <sanbai@taobao.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 6a0fe493
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -1414,8 +1414,7 @@ ext4_ext_next_allocated_block(struct ext4_ext_path *path)
 * ext4_ext_next_leaf_block:
 * ext4_ext_next_leaf_block:
 * returns first allocated block from next leaf or EXT_MAX_BLOCKS
 * returns first allocated block from next leaf or EXT_MAX_BLOCKS
 */
 */
static ext4_lblk_t ext4_ext_next_leaf_block(struct inode *inode,
static ext4_lblk_t ext4_ext_next_leaf_block(struct ext4_ext_path *path)
					struct ext4_ext_path *path)
{
{
	int depth;
	int depth;


@@ -1734,7 +1733,7 @@ int ext4_ext_insert_extent(handle_t *handle, struct inode *inode,
	fex = EXT_LAST_EXTENT(eh);
	fex = EXT_LAST_EXTENT(eh);
	next = EXT_MAX_BLOCKS;
	next = EXT_MAX_BLOCKS;
	if (le32_to_cpu(newext->ee_block) > le32_to_cpu(fex->ee_block))
	if (le32_to_cpu(newext->ee_block) > le32_to_cpu(fex->ee_block))
		next = ext4_ext_next_leaf_block(inode, path);
		next = ext4_ext_next_leaf_block(path);
	if (next != EXT_MAX_BLOCKS) {
	if (next != EXT_MAX_BLOCKS) {
		ext_debug("next leaf block - %d\n", next);
		ext_debug("next leaf block - %d\n", next);
		BUG_ON(npath != NULL);
		BUG_ON(npath != NULL);