Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbbKMGqA (ORCPT ); Fri, 13 Nov 2015 01:46:00 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:34551 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbbKMGp6 (ORCPT ); Fri, 13 Nov 2015 01:45:58 -0500 Subject: Re: [PATCH v3 01/17] mm: support madvise(MADV_FREE) To: Minchan Kim References: <1447302793-5376-1-git-send-email-minchan@kernel.org> <1447302793-5376-2-git-send-email-minchan@kernel.org> <564421DA.9060809@gmail.com> <20151113061511.GB5235@bbox> <56458056.8020105@gmail.com> <20151113063802.GF5235@bbox> Cc: Andy Lutomirski , Andrew Morton , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Michael Kerrisk , Linux API , Hugh Dickins , Johannes Weiner , Rik van Riel , Mel Gorman , KOSAKI Motohiro , Jason Evans , "Kirill A. Shutemov" , Shaohua Li , Michal Hocko , yalin wang From: Daniel Micay Message-ID: <56458720.4010400@gmail.com> Date: Fri, 13 Nov 2015 01:45:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151113063802.GF5235@bbox> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WPFUm5Gj72Qb6xXvdVJKIAmvmmpJe2WhO" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1976 Lines: 45 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WPFUm5Gj72Qb6xXvdVJKIAmvmmpJe2WhO Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable > And now I am thinking if we use access bit, we could implment MADV_FREE= _UNDO > easily when we need it. Maybe, that's what you want. Right? Yes, but why the access bit instead of the dirty bit for that? It could always be made more strict (i.e. access bit) in the future, while going the other way won't be possible. So I think the dirty bit is really the more conservative choice since if it turns out to be a mistake it can be fixed without a backwards incompatible change. --WPFUm5Gj72Qb6xXvdVJKIAmvmmpJe2WhO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWRYcgAAoJEPnnEuWa9fIqh34P/Ag7Y9sG5+idtmJvxE+JI4AN XLkBfKB5BGcUO80XUs65tXm5y2Qvyom1lUCMjZJvjNFMxr36wReHWe+kbC4sngY0 pGSHCTmWmzzy8GrlBlHv+VmvpkojhNO3FEkQWgIBkDdX4ildyo/Y8aH7HTKIBqxq OfqJPCmInu3dpoGJ0msj8hVp4yxvq+QfExnZ9O2Ys9WanG+m5H+nnxTuVS6RjGDN IcgzrEezTXMc87LEzPTny8sni8yLV87piEygepKS3MBiAEnkeB6MnaMm5iufp45h 2JygXJenjk4spr9LZ2L6DjjyIGfkmf5TnmJMLP2RhsikWt+cRKNlEtBWDSWEhHLg KIoL+QN9QMRqXe+OdfcQVT8rVQRzpiXINA4qJPxcyChr0Vnw5a50EOIZEJjvPOL/ 7zdukf541LMVGXeLWGpJ4tyiSQCdgyFqHchkNCltlF4S9EWJNHFVPrrGHWq0PpzK ducLhHLsLnB7gPEVOn2jwdz8AB/r1xshq8dhsBrYvdHty753oebKWQfwUBRYuG9A fotX/N/Xdlxx1V9oR3WRR5MJ5Pcch3zUiCqmTntVaVYBK09YNB1P3739Fncu3tOA N8xtDwfX1FrFGIpcZUUqeJ+5i7f34FG8GT6U95EniCyAOM9eY8TvRAdgt7wFUfKS UA/u0RHtwXtTQA2TkjBa =xVCM -----END PGP SIGNATURE----- --WPFUm5Gj72Qb6xXvdVJKIAmvmmpJe2WhO-- -- 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/