Return-Path: Received: from mx2.suse.de ([195.135.220.15]:37032 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727077AbeIENrg (ORCPT ); Wed, 5 Sep 2018 09:47:36 -0400 Date: Wed, 5 Sep 2018 11:18:00 +0200 From: David Sterba To: Nikolay Borisov Cc: stable@vger.kernel.org, Ethan Lien Subject: Re: [PATCH] btrfs: use correct compare function of dirty_metadata_bytes Message-ID: <20180905091800.GT24025@suse.cz> Reply-To: dsterba@suse.cz References: <153556110657212@kroah.com> <1535970598-25308-1-git-send-email-nborisov@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535970598-25308-1-git-send-email-nborisov@suse.com> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Sep 03, 2018 at 01:29:58PM +0300, Nikolay Borisov wrote: > From: Ethan Lien > > We use customized, nodesize batch value to update dirty_metadata_bytes. > We should also use batch version of compare function or we will easily > goto fast path and get false result from percpu_counter_compare(). > > Fixes: e2d845211eda ("Btrfs: use percpu counter for dirty metadata count") > CC: stable@vger.kernel.org # 4.4+ > Signed-off-by: Ethan Lien > Reviewed-by: Nikolay Borisov > Signed-off-by: David Sterba > [nb: Rebased on 4.9.y] > Signed-off-by: Nikolay Borisov > --- > > Here is a 4.9.y backport of upstream commit: > d814a49198eafa6163698bdd93961302f3a877a4 Please put this information to the changelog itself as the first line: commit d814a49198eafa6163698bdd93961302f3a877a4 upstream.