[Devel] [PATCH vz7] mm: Revert accounting for WRITEBACK_TEMP in balance_dirty_pages

Andrey Ryabinin aryabinin at virtuozzo.com
Fri Mar 3 01:07:47 PST 2017


On 03/03/2017 02:20 AM, Maxim Patlasov wrote:
> We needn't to account WRITEBACK_TEMP in balance_dirty_pages anymore because
> of "strictlimit" feature: fuse marks its bdi with BDI_CAP_STRICTLIMIT, so
> balance_dirty_pages knows that for fuse it should always pay attention to
> per-bdi limits and counters.
> 
> Kudos to Andrey Ryabinin for pointing out.
> 
> https://jira.sw.ru/browse/PSBM-60701
> Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>

Acked-by: Andrey Ryabinin <aryabinin at virtuozzo.com>

> ---
>  mm/page-writeback.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/mm/page-writeback.c b/mm/page-writeback.c
> index fd900c0..fcc0c1b 100644
> --- a/mm/page-writeback.c
> +++ b/mm/page-writeback.c
> @@ -1534,8 +1534,7 @@ static void balance_dirty_pages(struct address_space *mapping,
>  		 */
>  		nr_reclaimable = global_page_state(NR_FILE_DIRTY) +
>  					global_page_state(NR_UNSTABLE_NFS);
> -		nr_dirty = nr_reclaimable + global_page_state(NR_WRITEBACK) +
> -			global_page_state(NR_WRITEBACK_TEMP);
> +		nr_dirty = nr_reclaimable + global_page_state(NR_WRITEBACK);
>  
>  		global_dirty_limits(&background_thresh, &dirty_thresh);
>  
> 


More information about the Devel mailing list