Skip to content

Commit

Permalink
Btrfs: skip btrfs_release_path in btrfs_update_root and btrfs_del_root
Browse files Browse the repository at this point in the history
We don't need to call btrfs_release_path because btrfs_free_path will do
that for us.

Signed-off-by: Li Dongyang <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
  • Loading branch information
Li Dongyang authored and chrismason-xx committed Nov 11, 2009
1 parent 5df6a9f commit df66916
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/btrfs/root-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root
write_extent_buffer(l, item, ptr, sizeof(*item));
btrfs_mark_buffer_dirty(path->nodes[0]);
out:
btrfs_release_path(root, path);
btrfs_free_path(path);
return ret;
}
Expand Down Expand Up @@ -332,7 +331,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
BUG_ON(refs != 0);
ret = btrfs_del_item(trans, root, path);
out:
btrfs_release_path(root, path);
btrfs_free_path(path);
return ret;
}
Expand Down

0 comments on commit df66916

Please sign in to comment.