diff mbox

btrfs-progs: Remove unused function arg in delete_extent_records

Message ID 20170203161532.6111-1-rgoldwyn@suse.de (mailing list archive)
State Accepted
Headers show

Commit Message

Goldwyn Rodrigues Feb. 3, 2017, 4:15 p.m. UTC
From: Goldwyn Rodrigues <rgoldwyn@suse.com>

new_len is not used in delete_extent_records().

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
---
 cmds-check.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

David Sterba Feb. 8, 2017, 3:18 p.m. UTC | #1
On Fri, Feb 03, 2017 at 10:15:32AM -0600, Goldwyn Rodrigues wrote:
> From: Goldwyn Rodrigues <rgoldwyn@suse.com>
> 
> new_len is not used in delete_extent_records().
> 
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cmds-check.c b/cmds-check.c
index 84e1d99..9fb85e4 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -7969,7 +7969,7 @@  out:
 static int delete_extent_records(struct btrfs_trans_handle *trans,
 				 struct btrfs_root *root,
 				 struct btrfs_path *path,
-				 u64 bytenr, u64 new_len)
+				 u64 bytenr)
 {
 	struct btrfs_key key;
 	struct btrfs_key found_key;
@@ -8975,7 +8975,7 @@  static int fixup_extent_refs(struct btrfs_fs_info *info,
 
 	/* step two, delete all the existing records */
 	ret = delete_extent_records(trans, info->extent_root, &path,
-				    rec->start, rec->max_size);
+				    rec->start);
 
 	if (ret < 0)
 		goto out;