diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/delayed-ref.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index 66e4f29505a3..29ecd543d807 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c | |||
@@ -487,7 +487,7 @@ static noinline int add_delayed_ref_head(struct btrfs_fs_info *fs_info, | |||
487 | * we've updated the existing ref, free the newly | 487 | * we've updated the existing ref, free the newly |
488 | * allocated ref | 488 | * allocated ref |
489 | */ | 489 | */ |
490 | kfree(ref); | 490 | kfree(head_ref); |
491 | } else { | 491 | } else { |
492 | delayed_refs->num_heads++; | 492 | delayed_refs->num_heads++; |
493 | delayed_refs->num_heads_ready++; | 493 | delayed_refs->num_heads_ready++; |
@@ -549,7 +549,7 @@ static noinline int add_delayed_tree_ref(struct btrfs_fs_info *fs_info, | |||
549 | * we've updated the existing ref, free the newly | 549 | * we've updated the existing ref, free the newly |
550 | * allocated ref | 550 | * allocated ref |
551 | */ | 551 | */ |
552 | kfree(ref); | 552 | kfree(full_ref); |
553 | } else { | 553 | } else { |
554 | delayed_refs->num_entries++; | 554 | delayed_refs->num_entries++; |
555 | trans->delayed_ref_updates++; | 555 | trans->delayed_ref_updates++; |
@@ -611,7 +611,7 @@ static noinline int add_delayed_data_ref(struct btrfs_fs_info *fs_info, | |||
611 | * we've updated the existing ref, free the newly | 611 | * we've updated the existing ref, free the newly |
612 | * allocated ref | 612 | * allocated ref |
613 | */ | 613 | */ |
614 | kfree(ref); | 614 | kfree(full_ref); |
615 | } else { | 615 | } else { |
616 | delayed_refs->num_entries++; | 616 | delayed_refs->num_entries++; |
617 | trans->delayed_ref_updates++; | 617 | trans->delayed_ref_updates++; |