From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D5E3C61DA4 for ; Fri, 3 Feb 2023 09:50:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232990AbjBCJtq (ORCPT ); Fri, 3 Feb 2023 04:49:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbjBCJtl (ORCPT ); Fri, 3 Feb 2023 04:49:41 -0500 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8CE79C90; Fri, 3 Feb 2023 01:49:39 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0VaoUwBD_1675417773; Received: from 30.221.129.149(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VaoUwBD_1675417773) by smtp.aliyun-inc.com; Fri, 03 Feb 2023 17:49:35 +0800 Message-ID: <160b9e99-bff6-e37c-5f16-00157766535e@linux.alibaba.com> Date: Fri, 3 Feb 2023 17:49:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: make alloc_anon_inode more useful Content-Language: en-US To: Christoph Hellwig Cc: Andrew Morton , Daniel Vetter , Nadav Amit , "VMware, Inc." , "Michael S. Tsirkin" , David Hildenbrand , Minchan Kim , Nitin Gupta , Jason Gunthorpe , Alex Williamson , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Al Viro References: <20210309155348.974875-1-hch@lst.de> From: Jingbo Xu In-Reply-To: <20210309155348.974875-1-hch@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sorry for digging... This patch series seems useful for fs developers. I'm not sure its current status and why it doesn't get merged. On 3/9/21 11:53 PM, Christoph Hellwig wrote: > Hi all, > > this series first renames the existing alloc_anon_inode to > alloc_anon_inode_sb to clearly mark it as requiring a superblock. > > It then adds a new alloc_anon_inode that works on the anon_inode > file system super block, thus removing tons of boilerplate code. > > The few remainig callers of alloc_anon_inode_sb all use alloc_file_pseudo > later, but might also be ripe for some cleanup. > > Diffstat: > arch/powerpc/platforms/pseries/cmm.c | 27 +------------- > drivers/dma-buf/dma-buf.c | 2 - > drivers/gpu/drm/drm_drv.c | 64 +---------------------------------- > drivers/misc/cxl/api.c | 2 - > drivers/misc/vmw_balloon.c | 24 +------------ > drivers/scsi/cxlflash/ocxl_hw.c | 2 - > drivers/virtio/virtio_balloon.c | 30 +--------------- > fs/aio.c | 2 - > fs/anon_inodes.c | 15 +++++++- > fs/libfs.c | 2 - > include/linux/anon_inodes.h | 1 > include/linux/fs.h | 2 - > kernel/resource.c | 30 ++-------------- > mm/z3fold.c | 38 +------------------- > mm/zsmalloc.c | 48 +------------------------- > 15 files changed, 39 insertions(+), 250 deletions(-) > -- Thanks, Jingbo From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4093CC636D6 for ; Fri, 3 Feb 2023 09:49:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B6A07820A1; Fri, 3 Feb 2023 09:49:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org B6A07820A1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N0IPSKOASJyC; Fri, 3 Feb 2023 09:49:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3E2AE8209D; Fri, 3 Feb 2023 09:49:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3E2AE8209D Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 20F60C0033; Fri, 3 Feb 2023 09:49:44 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 233D7C002B for ; Fri, 3 Feb 2023 09:49:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DE683429ED for ; Fri, 3 Feb 2023 09:49:42 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org DE683429ED X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N9EfobixARLd for ; Fri, 3 Feb 2023 09:49:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2FC92429E2 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2FC92429E2 for ; Fri, 3 Feb 2023 09:49:40 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R181e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=ay29a033018046056; MF=jefflexu@linux.alibaba.com; NM=1; PH=DS; RN=18; SR=0; TI=SMTPD_---0VaoUwBD_1675417773; Received: from 30.221.129.149(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VaoUwBD_1675417773) by smtp.aliyun-inc.com; Fri, 03 Feb 2023 17:49:35 +0800 Message-ID: <160b9e99-bff6-e37c-5f16-00157766535e@linux.alibaba.com> Date: Fri, 3 Feb 2023 17:49:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: make alloc_anon_inode more useful Content-Language: en-US To: Christoph Hellwig References: <20210309155348.974875-1-hch@lst.de> From: Jingbo Xu In-Reply-To: <20210309155348.974875-1-hch@lst.de> Cc: Jason Gunthorpe , "VMware, Inc." , "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, Minchan Kim , Nadav Amit , Al Viro , Daniel Vetter , linux-fsdevel@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, Nitin Gupta X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" Hi, Sorry for digging... This patch series seems useful for fs developers. I'm not sure its current status and why it doesn't get merged. On 3/9/21 11:53 PM, Christoph Hellwig wrote: > Hi all, > > this series first renames the existing alloc_anon_inode to > alloc_anon_inode_sb to clearly mark it as requiring a superblock. > > It then adds a new alloc_anon_inode that works on the anon_inode > file system super block, thus removing tons of boilerplate code. > > The few remainig callers of alloc_anon_inode_sb all use alloc_file_pseudo > later, but might also be ripe for some cleanup. > > Diffstat: > arch/powerpc/platforms/pseries/cmm.c | 27 +------------- > drivers/dma-buf/dma-buf.c | 2 - > drivers/gpu/drm/drm_drv.c | 64 +---------------------------------- > drivers/misc/cxl/api.c | 2 - > drivers/misc/vmw_balloon.c | 24 +------------ > drivers/scsi/cxlflash/ocxl_hw.c | 2 - > drivers/virtio/virtio_balloon.c | 30 +--------------- > fs/aio.c | 2 - > fs/anon_inodes.c | 15 +++++++- > fs/libfs.c | 2 - > include/linux/anon_inodes.h | 1 > include/linux/fs.h | 2 - > kernel/resource.c | 30 ++-------------- > mm/z3fold.c | 38 +------------------- > mm/zsmalloc.c | 48 +------------------------- > 15 files changed, 39 insertions(+), 250 deletions(-) > -- Thanks, Jingbo _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE07BC61DA4 for ; Fri, 3 Feb 2023 18:39:23 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4P7kvt3fKzz3fCC for ; Sat, 4 Feb 2023 05:39:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.101; helo=out30-101.freemail.mail.aliyun.com; envelope-from=jefflexu@linux.alibaba.com; receiver=) X-Greylist: delayed 303 seconds by postgrey-1.36 at boromir; Fri, 03 Feb 2023 20:54:46 AEDT Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4P7WGZ297fz3c9V for ; Fri, 3 Feb 2023 20:54:45 +1100 (AEDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0VaoUwBD_1675417773; Received: from 30.221.129.149(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VaoUwBD_1675417773) by smtp.aliyun-inc.com; Fri, 03 Feb 2023 17:49:35 +0800 Message-ID: <160b9e99-bff6-e37c-5f16-00157766535e@linux.alibaba.com> Date: Fri, 3 Feb 2023 17:49:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: make alloc_anon_inode more useful Content-Language: en-US To: Christoph Hellwig References: <20210309155348.974875-1-hch@lst.de> From: Jingbo Xu In-Reply-To: <20210309155348.974875-1-hch@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 04 Feb 2023 05:37:56 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jason Gunthorpe , David Hildenbrand , "VMware, Inc." , "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, Minchan Kim , Alex Williamson , Nadav Amit , Al Viro , Daniel Vetter , linux-fsdevel@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, Nitin Gupta Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi, Sorry for digging... This patch series seems useful for fs developers. I'm not sure its current status and why it doesn't get merged. On 3/9/21 11:53 PM, Christoph Hellwig wrote: > Hi all, > > this series first renames the existing alloc_anon_inode to > alloc_anon_inode_sb to clearly mark it as requiring a superblock. > > It then adds a new alloc_anon_inode that works on the anon_inode > file system super block, thus removing tons of boilerplate code. > > The few remainig callers of alloc_anon_inode_sb all use alloc_file_pseudo > later, but might also be ripe for some cleanup. > > Diffstat: > arch/powerpc/platforms/pseries/cmm.c | 27 +------------- > drivers/dma-buf/dma-buf.c | 2 - > drivers/gpu/drm/drm_drv.c | 64 +---------------------------------- > drivers/misc/cxl/api.c | 2 - > drivers/misc/vmw_balloon.c | 24 +------------ > drivers/scsi/cxlflash/ocxl_hw.c | 2 - > drivers/virtio/virtio_balloon.c | 30 +--------------- > fs/aio.c | 2 - > fs/anon_inodes.c | 15 +++++++- > fs/libfs.c | 2 - > include/linux/anon_inodes.h | 1 > include/linux/fs.h | 2 - > kernel/resource.c | 30 ++-------------- > mm/z3fold.c | 38 +------------------- > mm/zsmalloc.c | 48 +------------------------- > 15 files changed, 39 insertions(+), 250 deletions(-) > -- Thanks, Jingbo