Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443931pxb; Tue, 14 Sep 2021 00:41:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBfvW8M7gpy+AkcwFaTo5DNltIg0UbdNDgPzmJU5dmZ4DVor70/28JSDf6ebb33gGW5n5k X-Received: by 2002:a92:cd81:: with SMTP id r1mr10994017ilb.279.1631605318659; Tue, 14 Sep 2021 00:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605318; cv=none; d=google.com; s=arc-20160816; b=ykJNf6UjrGtN0yt57maM0+Og9SOKDfHRMVfh4tDevXHvuSnPaVC51nhpvxeA9bHpNq yuDwKZdt8uZfFlQ/f/oBdIDXP/ByecWlwJx1ZOhabCBNGyHrk1rFWFpzf/s4KcJ8A18s /Ufxg5LqsgA/WqY8OCUmtlKQUDlpMz4h9kIjIaAI9D32j/TrIueuqQ0avIJ3VhdsSV0B BKzNtmlWP1036xo8KF/YJUv6nBPw7PHEzcMsuGKjrPOeLyBVhQNcnDyQhryhdJ3wK4fB x5g6LFS22qdHE5NM91Ab3lE/3Q78IC+uzx2mTsXLnEVfoc/1Q0FXXAdzK9qJq/Qu3s/Z Dbnw== 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=aplee84Zb9DYoAB52arCh7gLLArJ+QtTZ9BkGVcgL3k=; b=pS0GrcZjAjI7jmsHycntdqZpCWbg88KmaMURID/qCUkOTHBQPcMml7rKJ/XXtT3paR 1ZK+zWwh44q3XiwpRidRmvuQnv94vB6jrfZreoh32dbMauDfSs7qXtiE/ylRZzmdLbFt kYKmnaFSSC1enFX4OI6ZGLtYr3KZzsxp1zINRer6TlhsDBXOCGkAlmqBisEb7G3GZh4g +dmWsyu3y7mX+bR9GjELPIQlwVhKsSY9/ZuQnv39s896Q+r7bM0wH3BFAwfbmd8sizri iXS5zlrMU4MYG8x0+s/AwsTlmiTbmp0TQvKQOnnzcc2EyVKFwvwoqvNPAMrgFjPRUWb4 9Lqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="j/KITuWP"; 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 m13si9034720ild.27.2021.09.14.00.41.46; Tue, 14 Sep 2021 00:41:58 -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="j/KITuWP"; 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 S232611AbhINHnA (ORCPT + 99 others); Tue, 14 Sep 2021 03:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241817AbhINHm2 (ORCPT ); Tue, 14 Sep 2021 03:42:28 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC5BC06129E for ; Tue, 14 Sep 2021 00:38:45 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 17so11948901pgp.4 for ; Tue, 14 Sep 2021 00:38:45 -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=aplee84Zb9DYoAB52arCh7gLLArJ+QtTZ9BkGVcgL3k=; b=j/KITuWPMbeYdulQFVpeP/6fD0wVWiV4+zVQkMSI3HkkPRSP+6UzBOZTn/DmoIwtuB uVkKwiZKIEvgt2hIWH1jffF8/MDudPq8wolnKMz+MPQW0Twzt4nEZ7yNGYbN23SULu+P kfm0rJ+lud7zRbJDyVRoUiIeT2U25ECHdNNVR8FifNLG0U88xJb02YWMMw+1VWBYJv0X IrpPE96zahuNqa3wxty4Lm1YBWwFzyH7pdLBphKs2gahsTWQs/tFHqlnHsEGoZ1nT3aG XFxOFpWgHJXxA3Pfacjy+4fOQEI4QvRB9AzxhRJe6KTgEZ8TRBD4l+yG8TuH5pYtMuJ6 4Wng== 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=aplee84Zb9DYoAB52arCh7gLLArJ+QtTZ9BkGVcgL3k=; b=O0unA/R3QpCoByCaS5ip9zt0nmQ2ufOAWgnQlPU9KrBc8b4kSgGnKleWK7+EHR17ix iBtHI9qtRf1dMpuVTP1u1QsGv0UdGWd/rRhXVcbftXKXs7+bTbVgbOGDacvMP+aesQ2p xnXilLBWuI2NTcM5Rppr1aylQX+cAgqZCWkzGbB2wa5Py7qXD6Fb8A2whUdtoNS2dvAx 49I8pZfTkzSmkeMRt06prgj/Nm0ZbDEamhiFFeTczqm7Y/dyZ9BXA7DZhrWA7TTxT25G yp07uPMG8BjdV5Ra5qEY7JG1bOn3stkKnn8HTecxgiKvCE5W2A/6lAxBFXxUrEVC5UBW 55ew== X-Gm-Message-State: AOAM531HW1beJZnC/+5tEEqhv8StmYxI0KtBDcycQQ09BuZEceYw/8pI hup+9JXBDDmvnJX9BZo2bj0FxQ== X-Received: by 2002:a05:6a00:1147:b029:3e0:8c37:938e with SMTP id b7-20020a056a001147b02903e08c37938emr3328209pfm.65.1631605125499; Tue, 14 Sep 2021 00:38:45 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.38.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:38:45 -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 48/76] proc: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:10 +0800 Message-Id: <20210914072938.6440-49-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/proc/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 599eb724ff2d..cc0a406d3a19 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -66,7 +66,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb) { struct proc_inode *ei; - ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); + ei = alloc_inode_sb(sb, proc_inode_cachep, GFP_KERNEL); if (!ei) return NULL; ei->pid = NULL; -- 2.11.0