Re: [PATCH] btrfs: use correct compare function of dirty_metadata_bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 03, 2018 at 01:29:58PM +0300, Nikolay Borisov wrote:
> From: Ethan Lien <ethanlien@xxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxxxxx # 4.4+
> Signed-off-by: Ethan Lien <ethanlien@xxxxxxxxxxxx>
> Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>
> Signed-off-by: David Sterba <dsterba@xxxxxxxx>
> [nb: Rebased on 4.9.y]
> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>
> ---
> 
> 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.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux