On 03/19/2014 02:18 AM, David Sterba wrote:
On Tue, Mar 18, 2014 at 08:02:46PM +0800, Wang Shilong wrote:
@@ -2742,7 +2742,10 @@ static int add_extent_rec(struct cache_tree 
*extent_cache,
-       rec->found_rec = extent_rec;
+       if (extent_rec)
+               rec->found_rec = 1;
+       else
+               rec->found_rec = 0;
I've modified this to avoid 'if'

        rec->found_rec = !!extent_rec;
Dave, thanks for doing this.:-)

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to