diff options
author | Robin Dong <sanbai@taobao.com> | 2011-07-23 21:49:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-07-23 21:49:07 -0400 |
commit | 5718789da5b94bd4148cb7ea0f457089c26bc1c3 (patch) | |
tree | 8daf6d7e0150915220deaa3847752606dc416192 /fs | |
parent | 6a0fe49308dcac10ab510b3c45e00eb8d5ef440e (diff) |
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: Robin Dong <sanbai@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/extents.c | 5 |
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 | */ |
1417 | static ext4_lblk_t ext4_ext_next_leaf_block(struct inode *inode, | 1417 | static 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); |