From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757409Ab1ELOHj (ORCPT ); Thu, 12 May 2011 10:07:39 -0400 Received: from mga02.intel.com ([134.134.136.20]:52866 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757465Ab1ELOEM (ORCPT ); Thu, 12 May 2011 10:04:12 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.64,358,1301900400"; d="scan'208";a="641767825" Message-Id: <20110512140032.049072600@intel.com> User-Agent: quilt/0.48-1 Date: Thu, 12 May 2011 21:57:17 +0800 From: Wu Fengguang To: Andrew Morton cc: Jan Kara , Peter Zijlstra , Wu Fengguang cc: Dave Chinner cc: Christoph Hellwig cc: Cc: LKML Subject: [PATCH 11/17] writeback: add bdi_dirty_limit() kernel-doc References: <20110512135706.937596128@intel.com> Content-Disposition: inline; filename=writeback-task_dirty_limit-comment.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clarify the bdi_dirty_limit() comment. Acked-by: Peter Zijlstra Acked-by: Jan Kara Signed-off-by: Wu Fengguang --- mm/page-writeback.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) --- linux-next.orig/mm/page-writeback.c 2011-05-05 23:30:22.000000000 +0800 +++ linux-next/mm/page-writeback.c 2011-05-05 23:30:31.000000000 +0800 @@ -437,10 +437,17 @@ void global_dirty_limits(unsigned long * *pdirty = dirty; } -/* +/** * bdi_dirty_limit - @bdi's share of dirty throttling threshold + * @bdi: the backing_dev_info to query + * @dirty: global dirty limit in pages + * + * Returns @bdi's dirty limit in pages. The term "dirty" in the context of + * dirty balancing includes all PG_dirty, PG_writeback and NFS unstable pages. + * And the "limit" in the name is not seriously taken as hard limit in + * balance_dirty_pages(). * - * Allocate high/low dirty limits to fast/slow devices, in order to prevent + * It allocates high/low dirty limits to fast/slow devices, in order to prevent * - starving fast devices * - piling up dirty pages (that will take long time to sync) on slow devices *