From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415Ab1HGGpP (ORCPT ); Sun, 7 Aug 2011 02:45:15 -0400 Received: from mga14.intel.com ([143.182.124.37]:63555 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747Ab1HGGpK (ORCPT ); Sun, 7 Aug 2011 02:45:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,332,1309762800"; d="scan'208";a="35914865" Date: Sun, 7 Aug 2011 14:44:59 +0800 From: Wu Fengguang To: Andrea Righi Cc: "linux-fsdevel@vger.kernel.org" , Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , Greg Thelen , Minchan Kim , Vivek Goyal , linux-mm , LKML Subject: Re: [PATCH 5/5] writeback: IO-less balance_dirty_pages() Message-ID: <20110807064459.GB3287@localhost> References: <20110806084447.388624428@intel.com> <20110806094527.136636891@intel.com> <20110806144834.GA29243@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110806144834.GA29243@thinkpad> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > + bw = (u64)base_bw * bw >> BANDWIDTH_CALC_SHIFT; > > + pause = (HZ * pages_dirtied + bw / 2) / (bw | 1); > > + pause = min(pause, MAX_PAUSE); > > Fix this build warning: > > mm/page-writeback.c: In function ‘balance_dirty_pages’: > mm/page-writeback.c:889:11: warning: comparison of distinct pointer types lacks a cast Thanks! I'll fix it by changing `pause' to "long", since we'll have negative pause time anyway when considering think time compensation. Thanks, Fengguang From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 5/5] writeback: IO-less balance_dirty_pages() Date: Sun, 7 Aug 2011 14:44:59 +0800 Message-ID: <20110807064459.GB3287@localhost> References: <20110806084447.388624428@intel.com> <20110806094527.136636891@intel.com> <20110806144834.GA29243@thinkpad> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "linux-fsdevel@vger.kernel.org" , Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , Greg Thelen , Minchan Kim , Vivek Goyal , linux-mm , LKML To: Andrea Righi Return-path: Content-Disposition: inline In-Reply-To: <20110806144834.GA29243@thinkpad> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > > + bw =3D (u64)base_bw * bw >> BANDWIDTH_CALC_SHIFT; > > + pause =3D (HZ * pages_dirtied + bw / 2) / (bw | 1); > > + pause =3D min(pause, MAX_PAUSE); >=20 > Fix this build warning: >=20 > mm/page-writeback.c: In function =E2=80=98balance_dirty_pages=E2=80=99= : > mm/page-writeback.c:889:11: warning: comparison of distinct pointer ty= pes lacks a cast Thanks! I'll fix it by changing `pause' to "long", since we'll have negative pause time anyway when considering think time compensation. Thanks, Fengguang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter= .ca/ Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id 635306B016B for ; Sun, 7 Aug 2011 02:45:11 -0400 (EDT) Date: Sun, 7 Aug 2011 14:44:59 +0800 From: Wu Fengguang Subject: Re: [PATCH 5/5] writeback: IO-less balance_dirty_pages() Message-ID: <20110807064459.GB3287@localhost> References: <20110806084447.388624428@intel.com> <20110806094527.136636891@intel.com> <20110806144834.GA29243@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110806144834.GA29243@thinkpad> Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Righi Cc: "linux-fsdevel@vger.kernel.org" , Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , Greg Thelen , Minchan Kim , Vivek Goyal , linux-mm , LKML > > + bw = (u64)base_bw * bw >> BANDWIDTH_CALC_SHIFT; > > + pause = (HZ * pages_dirtied + bw / 2) / (bw | 1); > > + pause = min(pause, MAX_PAUSE); > > Fix this build warning: > > mm/page-writeback.c: In function a??balance_dirty_pagesa??: > mm/page-writeback.c:889:11: warning: comparison of distinct pointer types lacks a cast Thanks! I'll fix it by changing `pause' to "long", since we'll have negative pause time anyway when considering think time compensation. Thanks, Fengguang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org