Message ID | 20200110213433.94739-5-minchan@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=elf6=27=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3A92C138D for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 10 Jan 2020 21:34:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F07E320842 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 10 Jan 2020 21:34:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rURmhW8w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F07E320842 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 458488E0009; Fri, 10 Jan 2020 16:34:47 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3BD758E0001; Fri, 10 Jan 2020 16:34:47 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 211188E0009; Fri, 10 Jan 2020 16:34:47 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0203.hostedemail.com [216.40.44.203]) by kanga.kvack.org (Postfix) with ESMTP id 07A3A8E0001 for <linux-mm@kvack.org>; Fri, 10 Jan 2020 16:34:47 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id AA7C78248041 for <linux-mm@kvack.org>; Fri, 10 Jan 2020 21:34:46 +0000 (UTC) X-FDA: 76363029372.30.cord07_c8d39ecf1922 X-Spam-Summary: 30,2,0,86404a0842d2d401,d41d8cd98f00b204,minchan.kim@gmail.com,:akpm@linux-foundation.org:linux-kernel@vger.kernel.org::linux-api@vger.kernel.org:oleksandr@redhat.com:surenb@google.com:timmurray@google.com:dancol@google.com:sspatil@google.com:sonnyrao@google.com:bgeffon@google.com:mhocko@suse.com:hannes@cmpxchg.org:shakeelb@google.com:joaodias@google.com:minchan@kernel.org,RULES_HIT:41:355:379:541:800:960:967:973:988:989:1260:1311:1314:1345:1359:1437:1515:1535:1542:1711:1730:1747:1777:1792:2393:2525:2559:2563:2682:2685:2693:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4823:5007:6119:6120:6261:6653:6742:7576:7901:7903:8557:9025:10004:11026:11658:11914:12043:12297:12438:12517:12519:12555:12679:12895:13869:13894:14181:14394:14721:21080:21222:21444:21451:21524:21627:21740:21772:21889:21990:30005:30034:30054,0,RBL:209.85.214.194:@gm ail.com: X-HE-Tag: cord07_c8d39ecf1922 X-Filterd-Recvd-Size: 5662 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by imf28.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Fri, 10 Jan 2020 21:34:46 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id x17so1331872pln.1 for <linux-mm@kvack.org>; Fri, 10 Jan 2020 13:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=//Vec5skQW+H9IPGRTNbLtqR3goYkBV9ehrKBDaBk60=; b=rURmhW8wIF5KaQsftvbrXK/WNqEug54J5oUNqc7D2y8i0VNxKhfqtIIWkeKS+rI+rf ukFURwW9nBJzL2fIW5hQ/oFXNOgNWzwsvTw/Zoa4OQKmQ2U9pcNQZVzs+vMEOjHz8agB Yl76iCX6lKPXezdEACjEkV+oZgyKT5n5CoJNlvEbBDcVwI+u0Ol5QPl2AcmNyY7dzZIa 8CC3O7wtMjWAPrJtm5srhBkqvguebPYp7vKuCR98SQeUQEutaxAfumTwgQe72TDSFy8d /0cIAWs2gl26s6vbbkPuKVU9i8VipkyIFZ9F7IE+gBRXE4s3I1JAEm0H7GnfYE2U969x VhUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=//Vec5skQW+H9IPGRTNbLtqR3goYkBV9ehrKBDaBk60=; b=sMTiKOqhSbIp6K4cAYUOtonJGHHtNhJsG/9Mk74Ikeq/TLP4C/Svt4Od8DZ8aG4Rz7 EfIrikokiQGBd5pANjp3WcweBTfxVrgK3GzyfA9b89o+1mAm0Ju7ZTnAv1LqtwrVrAOm 0ddS59MnrqL0Yx39J9gV6YWIzkh3auUbQhrBC8WEdANaxODp1zGjws6so++ajqBa0ZHp 7PysRfhAHgvX/d+X2K8DS8avSxyzxmnBVTSJGkMyNOpQTZMyYTmICafsR+SmnuB+qB+G aOwuIiDQKbkdHK13pNSunZ20s91TIiJ/s8DA9z1D0gJW96y9pL8XmYzikkzdAAqi5glS XGUA== X-Gm-Message-State: APjAAAXQWBNvHxN/pB8MHlBzp76q2Zx+a6RGBDgMTQgTS4QD4y/jVxSz SXX3LOhTd0+ivnYcQMRu11xEnd7s X-Google-Smtp-Source: APXvYqyiUD9sT7EtnveIa/vRKGHAVVn2/b7SMr8wdqziUFzg/6Noadwwq9c50Cg1S/0Q+GiUW7raUg== X-Received: by 2002:a17:902:b104:: with SMTP id q4mr731201plr.132.1578692085293; Fri, 10 Jan 2020 13:34:45 -0800 (PST) Received: from bbox-1.mtv.corp.google.com ([2620:15c:211:1:3e01:2939:5992:52da]) by smtp.gmail.com with ESMTPSA id t137sm3692307pgb.40.2020.01.10.13.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 13:34:43 -0800 (PST) From: Minchan Kim <minchan@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: LKML <linux-kernel@vger.kernel.org>, linux-mm <linux-mm@kvack.org>, linux-api@vger.kernel.org, oleksandr@redhat.com, Suren Baghdasaryan <surenb@google.com>, Tim Murray <timmurray@google.com>, Daniel Colascione <dancol@google.com>, Sandeep Patil <sspatil@google.com>, Sonny Rao <sonnyrao@google.com>, Brian Geffon <bgeffon@google.com>, Michal Hocko <mhocko@suse.com>, Johannes Weiner <hannes@cmpxchg.org>, Shakeel Butt <shakeelb@google.com>, John Dias <joaodias@google.com>, Minchan Kim <minchan@kernel.org> Subject: [PATCH 4/4] mm/madvise: allow KSM hints for remote API Date: Fri, 10 Jan 2020 13:34:33 -0800 Message-Id: <20200110213433.94739-5-minchan@kernel.org> X-Mailer: git-send-email 2.25.0.rc1.283.g88dfdc4193-goog In-Reply-To: <20200110213433.94739-1-minchan@kernel.org> References: <20200110213433.94739-1-minchan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
introduce memory hinting API for external process
|
expand
|
diff --git a/mm/madvise.c b/mm/madvise.c index eb42b2b7f49b..3aa9aec6bfd9 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -1000,6 +1000,8 @@ process_madvise_behavior_valid(int behavior) switch (behavior) { case MADV_COLD: case MADV_PAGEOUT: + case MADV_MERGEABLE: + case MADV_UNMERGEABLE: return true; default: return false;