From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by kanga.kvack.org (Postfix) with ESMTP id BEB3F6B0039 for ; Mon, 7 Oct 2013 23:28:40 -0400 (EDT) Received: by mail-pd0-f179.google.com with SMTP id v10so8027368pde.24 for ; Mon, 07 Oct 2013 20:28:40 -0700 (PDT) Received: by mail-ie0-f180.google.com with SMTP id u16so17812417iet.39 for ; Mon, 07 Oct 2013 20:28:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1380761503-14509-8-git-send-email-john.stultz@linaro.org> References: <1380761503-14509-1-git-send-email-john.stultz@linaro.org> <1380761503-14509-8-git-send-email-john.stultz@linaro.org> From: Zhan Jianyu Date: Tue, 8 Oct 2013 11:27:57 +0800 Message-ID: Subject: Re: [PATCH 07/14] vrange: Purge volatile pages when memory is tight Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: John Stultz Cc: LKML , Minchan Kim , Andrew Morton , Android Kernel Team , Robert Love , Mel Gorman , Hugh Dickins , Dave Hansen , Rik van Riel , Dmitry Adamushko , Dave Chinner , Neil Brown , Andrea Righi , Andrea Arcangeli , "Aneesh Kumar K.V" , Mike Hommey , Taras Glek , Dhaval Giani , Jan Kara , KOSAKI Motohiro , Michel Lespinasse , Rob Clark , "linux-mm@kvack.org" On Thu, Oct 3, 2013 at 8:51 AM, John Stultz wrote: > static inline int page_referenced(struct page *page, int is_locked, > struct mem_cgroup *memcg, > - unsigned long *vm_flags) > + unsigned long *vm_flags, > + int *is_vrange) > { > *vm_flags = 0; > + *is_vrange = 0; > return 0; > } I don't know if it is appropriate to add a parameter in such a core function for an optional functionality. Maybe the is_vrange flag should be squashed into the vm_flags ? I am not sure . -- Regards, Zhan Jianyu -- 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/ . Don't email: email@kvack.org