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