From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhu Yanhai Subject: Re: [PATCH] Function btree_get_extent: Incorrect if-else if statement Date: Mon, 6 Sep 2010 22:15:02 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org To: =?UTF-8?Q?Andr=C3=A9_Nogueira?= Return-path: In-Reply-To: List-ID: This is not correct. 2010/8/9 Andr=C3=A9 Nogueira : > The btree_get_extent function (in file disk-io.c) calls the > add_extent_mapping (in file extent_map.c). The add_extent_mapping > function can return two values: 0 or -EEXIST. It might return some other error values besides -EEXIST, the 'else if (ret)' branch is just against them. Namely, we should do some thing special when EEXIST, and do another thi= ngs for all other errors. Regards, Zhu Yanhai