[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160201143432.GH31992@twin.jikos.cz>
Date: Mon, 1 Feb 2016 15:34:32 +0100
From: David Sterba <dsterba@...e.cz>
To: Matthew Wilcox <matthew.r.wilcox@...el.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Hugh Dickins <hughd@...gle.com>,
Matthew Wilcox <willy@...ux.intel.com>,
Konstantin Khlebnikov <khlebnikov@...nvz.org>,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH 3/5] btrfs: Use radix_tree_iter_retry()
On Wed, Jan 27, 2016 at 04:17:50PM -0500, Matthew Wilcox wrote:
> From: Matthew Wilcox <willy@...ux.intel.com>
>
> Even though this is a 'can't happen' situation, use the new
> radix_tree_iter_retry() pattern to eliminate a goto.
Andrew's tree contains a fixup for a build failure
> @@ -147,7 +146,7 @@ restart:
> /* Shouldn't happen but that kind of thinking creates CVE's */
> if (radix_tree_exception(eb)) {
> if (radix_tree_deref_retry(eb))
> - goto restart;
> + slot = radix_tree_iter_retry(iter);
slot = radix_tree_iter_retry(&iter);
http://ozlabs.org/~akpm/mmots/broken-out/btrfs-use-radix_tree_iter_retry-fix.patch
Powered by blists - more mailing lists