Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751862AbdHBHm7 (ORCPT ); Wed, 2 Aug 2017 03:42:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:45357 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751135AbdHBHm6 (ORCPT ); Wed, 2 Aug 2017 03:42:58 -0400 Date: Wed, 2 Aug 2017 09:42:55 +0200 From: Michal Hocko To: Andrew Morton Cc: Johannes Weiner , Tetsuo Handa , Josef Bacik , Vladimir Davydov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 2/2] mm: rename global_page_state to global_zone_page_state Message-ID: <20170802074255.GC2524@dhcp22.suse.cz> References: <20170801134256.5400-1-hannes@cmpxchg.org> <20170801134256.5400-2-hannes@cmpxchg.org> <20170801140520.96835ef87fe41a448c05504b@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170801140520.96835ef87fe41a448c05504b@linux-foundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 565 Lines: 17 On Tue 01-08-17 14:05:20, Andrew Morton wrote: [...] > WARNING: line over 80 characters > #187: FILE: mm/page-writeback.c:1408: > + * global_zone_page_state() too often. So scale it near-sqrt to the safety margin > > > Liveable with, but the code would be quite a bit neater if we had a > helper function for this. I vaguely remember somebody wanted to add/consolidate a helper to convert pages to kB as we have more of those. I wouldn't lose sleep over "line over 80 characters" warnings in this case. Those lines are still readable. -- Michal Hocko SUSE Labs