public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]don't call btrfs_release_path in btrfs_update_root and btrfs_del_root
@ 2009-11-06 14:33 Li Dongyang
  0 siblings, 0 replies; only message in thread
From: Li Dongyang @ 2009-11-06 14:33 UTC (permalink / raw)
  To: linux-btrfs; +Cc: chris.mason

We don't need to call btrfs_release_path because btrfs_free_path will do
that for us.

Signed-off-by: Li Dongyang <Jerry87905@gmail.com>
---
 fs/btrfs/root-tree.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index 9351428..67fa2d2 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -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;
 }
@@ -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;
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-06 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06 14:33 [PATCH]don't call btrfs_release_path in btrfs_update_root and btrfs_del_root Li Dongyang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox