Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754076Ab3JHD2k (ORCPT ); Mon, 7 Oct 2013 23:28:40 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:37993 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752717Ab3JHD2i (ORCPT ); Mon, 7 Oct 2013 23:28:38 -0400 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 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" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 28 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 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/