Message ID | 20170203161532.6111-1-rgoldwyn@suse.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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 --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;