Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753261AbbGVVpw (ORCPT ); Wed, 22 Jul 2015 17:45:52 -0400 Received: from elasmtp-dupuy.atl.sa.earthlink.net ([209.86.89.62]:43365 "EHLO elasmtp-dupuy.atl.sa.earthlink.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752363AbbGVVpv convert rfc822-to-8bit (ORCPT ); Wed, 22 Jul 2015 17:45:51 -0400 X-Greylist: delayed 514 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Jul 2015 17:45:51 EDT DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=Q3dfzhij6nUQesPEUodJLULyDtrm9BctwjsypfTKBXvidL09u3AyXpNh0TDbmlfa; h=Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer:X-ELNK-Trace:X-Originating-IP; Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: mm/page_alloc.c : Intent to clone zone_watermark_ok() From: Mitchell Erblich In-Reply-To: <55aff5ae.j6gnJaos4lUP3GFt%akpm@linux-foundation.org> Date: Wed, 22 Jul 2015 14:37:14 -0700 Cc: Mitchell Erblich Content-Transfer-Encoding: 8BIT Message-Id: <1ED22AF8-3CAC-468C-96D1-AEEDDC06F017@earthlink.net> References: <55aff5ae.j6gnJaos4lUP3GFt%akpm@linux-foundation.org> To: linux-kernel@vger.kernel.org X-Mailer: Apple Mail (2.1878.6) X-ELNK-Trace: 074f60c55517ea841aa676d7e74259b7b3291a7d08dfec79c1caeac654e259ccd051b1f4120020d8350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 50.136.188.174 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1126 Lines: 24 Group, This is a notification that local changes are believed to be needed to the zone_watermark_ok() : mm/page_alloc.c for a family of embedded devices. The embedded device has no secondary storage thus cleaning dirty pages are not available and crossing below the min levels is unwarranted. This function seems to contain the necessary logic with minor modifications and thus the intent is to duplicate most of its functionality. The local function is create a new family of zone_watermark_num() based on the family of zone_watermark_ok() that now returns an int, number of free pages. The number of free_pages, where a positive number is num of free pages is above the watermark at the order, etc and negative below. Please inform me whether the equivalent function is already present in what release. Thank you, Mitchell Erblich OS Engineer -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/