Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6648621ybi; Sun, 21 Jul 2019 22:55:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNCRNVryYx2yYh7bLS4yAHtxwui7m3HtrMuoqy/l9ICYpkZ1nY1HcjdGaXkkKDL3+dByyL X-Received: by 2002:a17:90a:a404:: with SMTP id y4mr77676972pjp.58.1563774930759; Sun, 21 Jul 2019 22:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563774930; cv=none; d=google.com; s=arc-20160816; b=XrzAHA4yn4VvoutGXgwZY0wQr0tQ8GTYuaOHaxsJ/GN0nSzrItKrqh01MU5eFJl3CY NXEI3PKAEA9pWvG1vstrZd5obRRyzRhEX09Hr5UURo4SqZoWXDaT2+j3bB7iEHpV6uWT g5tnGN3/np0LaauOID9Gn3myDMJmnbXiEOwbP7L+nDSltskd/Q1GtWmjCpnQKxhqK4jN 4wMlwznaD1AF6Kb8CEbNAvKXxVJBj0vwq6NZa8cxBrH+C4j3TcCF2Y0MrzW2TG9rrqt3 ECcYfnwfQwPhbfQPIr7rob6Z4OWBwvqWgXsiy+5Bo18Nk80ksWVpJexCGnq2FTvSB0dF 9kzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OMqsPQOjQqPIEBmD3EIh4Qtw05vaz+UOfW4nYOJHTL4=; b=O2kuYw+MHVHEhQda1N3ybnbXMosBF2bTg+7nc7avToD8yD1UFwO+pIpNAnHsTTG48j qoPnYbG4x1k3dEHlnGSfeA74+Rf1uq4N7WRoX/c4DcJkVrQ1kKChtx157t8b+ezN5E2n 6kYTfBtj1GBFHSvmuu074Eipg10UMPk2wmyy0NaAY9HGLPbbHRXDPR/9k4avo3d6c8pk lhcU2+kBdg4FDAHYzLJ7++d/puZNr9WNVlJIJRcWyEFe3Blp+YBLHHhjYgrcYdOcenk0 jFEpycHcg8YskYrNVEsc1DOaFFpqoNUmWac8CrDqMsPhgsiorB96fegmWzHPplStvX+T H2hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t/VUEFE9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k133si8081277pgc.425.2019.07.21.22.55.14; Sun, 21 Jul 2019 22:55:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t/VUEFE9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727631AbfGVEjk (ORCPT + 99 others); Mon, 22 Jul 2019 00:39:40 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:34710 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726547AbfGVEjk (ORCPT ); Mon, 22 Jul 2019 00:39:40 -0400 Received: by mail-yw1-f67.google.com with SMTP id q128so15435671ywc.1; Sun, 21 Jul 2019 21:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OMqsPQOjQqPIEBmD3EIh4Qtw05vaz+UOfW4nYOJHTL4=; b=t/VUEFE9R2TvEBxbMNvsYCoL2WZYdDc0V4kRWpaHd/rCAxdQIa436PxuYFihm/ifDL H5FDSOR4DAcsJfHRaXAU2y1fOgiHivBPZDcNU+NKvX/KOFe0+TIojO7yzrLOaCpfSgyH 8w8H1swbhb7jAhafPPfws0q8ehyTp/OIOqdO5fSa9w6TNw/A3QFZcpZ7zIQOcFFirqf3 rRY81Z8vai/trJWZwFmj3nqB2pLuwZujCtzdqgYaUFY39SgnBtvz0FEizNU7qvcPe1iZ 9Cd4RFJF9WGz6EuAuJQeCzPQRQ2HfRrXe7rRYmw/vjWiISrRX9vt1y7X3WVeck0H9Ayf 1UGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OMqsPQOjQqPIEBmD3EIh4Qtw05vaz+UOfW4nYOJHTL4=; b=NEPa6hHNRQdxAqyHmFex++84zd5bg/a2MmgFt+4fiq/a0EwbUe1N3qU/NcLlQxjasj YpYwlupQWTnM2xr7864s7iNZQreVL1P9NE/oJmBLhAJJO2NARKu6J946FfBkmTDsV5FH MrEQfOxUZuYyAJ/tSVp//elG75nCGJkxlSmrryA9Y6bUJOwZd1Z103Ed+41IqY4Qii5+ 7rM90Y+43Q36q2e08Qj1/FzjLl5Du+i2lcdzPf0irDJT6PF4lvB28pTeWVWTNFTgl3lV EQ7nIIVthKORXQSr2g9iZA5DSJdTvPYM4WEK2h0nXgnQrEMaWziGdrqGqDQ20RhGYKW4 A+cw== X-Gm-Message-State: APjAAAUv3g1CWTIpOvfZ8V4Cs1vZm7jCWr5sUKmkxmDwH/Cfflt9nVsz XTKA297oFdvdnawE5D6NfNebluBDuB0nPaxuaZQ= X-Received: by 2002:a81:50d5:: with SMTP id e204mr39589702ywb.379.1563770379165; Sun, 21 Jul 2019 21:39:39 -0700 (PDT) MIME-Version: 1.0 References: <20190722025043.166344-1-gaoxiang25@huawei.com> <20190722025043.166344-13-gaoxiang25@huawei.com> In-Reply-To: <20190722025043.166344-13-gaoxiang25@huawei.com> From: Amir Goldstein Date: Mon, 22 Jul 2019 07:39:27 +0300 Message-ID: Subject: Re: [PATCH v3 12/24] erofs: introduce tagged pointer To: Gao Xiang Cc: Alexander Viro , Greg Kroah-Hartman , Andrew Morton , Stephen Rothwell , "Theodore Ts'o" , Linus Torvalds , linux-fsdevel , devel@driverdev.osuosl.org, LKML , linux-erofs@lists.ozlabs.org, Chao Yu , Miao Xie , Li Guifu , Fang Wei Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 5:54 AM Gao Xiang wrote: > > Currently kernel has scattered tagged pointer usages > hacked by hand in plain code, without a unique and > portable functionset to highlight the tagged pointer > itself and wrap these hacked code in order to clean up > all over meaningless magic masks. > > This patch introduces simple generic methods to fold > tags into a pointer integer. Currently it supports > the last n bits of the pointer for tags, which can be > selected by users. > > In addition, it will also be used for the upcoming EROFS > filesystem, which heavily uses tagged pointer pproach > to reduce extra memory allocation. > > Link: https://en.wikipedia.org/wiki/Tagged_pointer Well, it won't do much good for other kernel users in fs/erofs/ ;-) I think now would be a right time to promote this facility to include/linux as you initially proposed. I don't recall you got any objections. No ACKs either, but I think that was the good kind of silence (?) You might want to post the __fdget conversion patch [1] as a bonus patch on top of your series. Thanks, Amir. [1] https://lore.kernel.org/linux-fsdevel/1530543233-65279-2-git-send-email-gaoxiang25@huawei.com/