* [PATCH] btrfs: cleanup error handling in btrfs_unlink_inode()
@ 2011-02-03 3:16 Tsutomu Itoh
0 siblings, 0 replies; only message in thread
From: Tsutomu Itoh @ 2011-02-03 3:16 UTC (permalink / raw)
To: Linux Btrfs; +Cc: Chris Mason
When btrfs_alloc_path() fails, btrfs_free_path() need not be called.
Therefore, it changes the branch ahead.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
---
fs/btrfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -urNp linux-2.6.38-rc3/fs/btrfs/inode.c linux-2.6.38-rc3.test/fs/btrfs/inode.c
--- linux-2.6.38-rc3/fs/btrfs/inode.c 2011-02-01 12:05:49.000000000 +0900
+++ linux-2.6.38-rc3.test/fs/btrfs/inode.c 2011-02-03 11:25:47.000000000 +0900
@@ -2641,7 +2641,7 @@ int btrfs_unlink_inode(struct btrfs_tran
path = btrfs_alloc_path();
if (!path) {
ret = -ENOMEM;
- goto err;
+ goto out;
}
path->leave_spinning = 1;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-03 3:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 3:16 [PATCH] btrfs: cleanup error handling in btrfs_unlink_inode() Tsutomu Itoh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).