From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754775Ab0GLV5T (ORCPT ); Mon, 12 Jul 2010 17:57:19 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42245 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754073Ab0GLV5S (ORCPT ); Mon, 12 Jul 2010 17:57:18 -0400 Date: Mon, 12 Jul 2010 14:56:43 -0700 From: Andrew Morton To: Wu Fengguang Cc: Christoph Hellwig , Peter Zijlstra , Dave Chinner , Jan Kara , , Linux Memory Management List , LKML Subject: Re: [PATCH 3/6] writeback: avoid unnecessary calculation of bdi dirty thresholds Message-Id: <20100712145643.a944c495.akpm@linux-foundation.org> In-Reply-To: <20100711021748.879183413@intel.com> References: <20100711020656.340075560@intel.com> <20100711021748.879183413@intel.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Jul 2010 10:06:59 +0800 Wu Fengguang wrote: > +void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty) > > ... > > +unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, > + unsigned long dirty) It'd be nice to have some documentation for these things. They're non-static, non-obvious and are stuffed to the gills with secret magic numbers.