Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443262pxb; Tue, 14 Sep 2021 00:40:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/iA687Ku088kF/XAHJgbCKT2AvKQNjRTiSu/sMwyvL5dIURjP0GGDonjPS1nbpbNo8FAM X-Received: by 2002:a05:6402:51d2:: with SMTP id r18mr10473874edd.108.1631605240332; Tue, 14 Sep 2021 00:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605240; cv=none; d=google.com; s=arc-20160816; b=Ycb4TQSpR1Pgjtzmy3jL+/sLIKepqbqwTtb0kzFLWUFnk3KviKZXifqZa2tha3rNB3 sgZNSndTVPcEGm5VWuUOC/Klo9oGXyw1txZpxdFpUspGf+o4oSGCzV/tLjlVSDxIpbrV xJM7CY5Eus6PZwuAxQoolTvLMC1m0A9dPR4n6c5/KXy0DA6eyUQmTZ/Y+SeOqurHhnl2 ZVyHjZC3NZwRQAnJ1tZs9oucnAvgcXtuEIu9aR9LIyAqRDUZnMylGo6LluxWEd1Hpb43 R2ww9IaLhS3Y3bmP0jTjy3/oYh8ai3v/LAFxkRoSQ6odv4T+GqeE3rnbbzE7QMPNVdIw SuIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pk/g/5Ewh/BWbS+r3Zv89u3wQLvB5lvkiHidZy1oV4s=; b=XJL5e4h4X/z3tBurcNpBZq5/7lV3bmXihkTIBskr+tLoYt3DJUWleAv0YiDek/4rDM cHwcQTUCTjzVZ1L+L77un6Ecw6dlA0euqVCGRgrUro6b1ft/nXr02N8OVrXv16pK4lYW PZPJvcVxx11vAZFvTTxh7UXanNMdGALM5quFmPECLENBMN9mbIMIfibQ0d2TB/rEasgL IpLg3j0TjizocsOyT7wBxGzg6RpI6WWoxQ3NxL4rcjkPZREiybMzWQaLDIJq9e9FGdrS 1zeWF5b8qAoaK1RqjiwbQA9yU0QMs5qH0ASx/iEWem1JOU5xXgaraIMDKl59J/XaniqC 2A0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=WcY1yPh8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay23si9928161edb.134.2021.09.14.00.40.17; Tue, 14 Sep 2021 00:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=WcY1yPh8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241513AbhINHla (ORCPT + 99 others); Tue, 14 Sep 2021 03:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241435AbhINHlC (ORCPT ); Tue, 14 Sep 2021 03:41:02 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C5DAC0617AA for ; Tue, 14 Sep 2021 00:37:47 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id lb1-20020a17090b4a4100b001993f863df2so2051581pjb.5 for ; Tue, 14 Sep 2021 00:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Pk/g/5Ewh/BWbS+r3Zv89u3wQLvB5lvkiHidZy1oV4s=; b=WcY1yPh80TMJjBnbbZGtw/GMPkEzyaMHqlULd/NRUKXt8pI4DFQ48vleP7H1vE+xgZ hRxFd59Mq4NsGlRtjpmK2x5LpWLAQYeQFBDqRmENDo32s1LIcASy5xWfUrYjkoZah/VQ oVxqt22Ky7knQ+tVD3kq3XyLg/uaBhHDTOxc6/ej4r5Net3HI8MccZjHzIigwFKdgea8 8PCWLWL82eHmzNQP69G+UrnMBcqm/xsVmXxC4b4wKzHRBu/EM8iYQg621F5+BXcaQvaG ay+FP0jNrKylQJlKN0ly0UWA/32zT83i11WoYwI8X4Jx7IHeJdR2TKFMAF7Ydcnwf2GF /fyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Pk/g/5Ewh/BWbS+r3Zv89u3wQLvB5lvkiHidZy1oV4s=; b=I4oc/UF4egvYB1XpD/6hBbktJjsDphpznaTIPqUbHitZjDthfaKtTXOMGWMoWWdqSN vhFbR9NugSpkpoUp9Px3tRihUZSfpRLFWHFYZA4W66wYoXAeE2/9S9sFd8WzRA0UhUDv s1mV4YsigOuOolg2VsR6U9JnGdHX3xEAW54Xsfr9oz3OkCqFWC+oY6WLMxor3wYOKYjB xBoENuWlWzdC+tdnfB6G+xaiU97k5CnAXGhYCxnQq5PMlZzHu0MtrVsiCkXqGGXUfHJh WN4hY/sBFqdBgMnszI71hXRsOxRAs8ZS8PajAbHdrVOlSLS7g3qpTgvK/jR8utkknQvX VISQ== X-Gm-Message-State: AOAM530y8q/p8VvLaov1H37DKGPi9u3gr8ifSC1yl0s+foTXesoYSNpE sEAiCktbjfa0Mp9E4EZ8XZSPgg== X-Received: by 2002:a17:90a:4ce3:: with SMTP id k90mr524134pjh.237.1631605067036; Tue, 14 Sep 2021 00:37:47 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.37.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:37:46 -0700 (PDT) From: Muchun Song To: willy@infradead.org, akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, shakeelb@google.com, guro@fb.com, shy828301@gmail.com, alexs@kernel.org, richard.weiyang@gmail.com, david@fromorbit.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, zhengqi.arch@bytedance.com, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, smuchun@gmail.com, Muchun Song Subject: [PATCH v3 40/76] minix: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:02 +0800 Message-Id: <20210914072938.6440-41-songmuchun@bytedance.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) In-Reply-To: <20210914072938.6440-1-songmuchun@bytedance.com> References: <20210914072938.6440-1-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The inode allocation is supposed to use alloc_inode_sb(), so convert kmem_cache_alloc() to alloc_inode_sb(). Signed-off-by: Muchun Song --- fs/minix/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/minix/inode.c b/fs/minix/inode.c index a71f1cf894b9..8a0af80741b5 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c @@ -63,7 +63,7 @@ static struct kmem_cache * minix_inode_cachep; static struct inode *minix_alloc_inode(struct super_block *sb) { struct minix_inode_info *ei; - ei = kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL); + ei = alloc_inode_sb(sb, minix_inode_cachep, GFP_KERNEL); if (!ei) return NULL; return &ei->vfs_inode; -- 2.11.0