Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp441120pxb; Tue, 14 Sep 2021 00:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeCYRVabBjNArH+N7Ibgh9otdqs9P8XVLU+LEKwqy0cfbpXJ1bcAnb6D0IN/gMv1qkbH2E X-Received: by 2002:a92:d5d0:: with SMTP id d16mr10191893ilq.179.1631604979518; Tue, 14 Sep 2021 00:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631604979; cv=none; d=google.com; s=arc-20160816; b=KlayIXbLJ1dtV88T1sfg2LkvDlNChInEkgp8vHL71WJVBCplFt679S/T4jTOWjv9/y WSlq6Cm37ydpxs3v7I/bQ6PPbelldxYQFD5iCCj4dQMMXZEUBezztOKJwp054q8PaWpj y3TdiOj133KScD4TP7t8wpj87MT+LIie79eY0rURgnjWRxTw3jNX6vWDlZt12QHusr3l Idh8iBsuTJzkrgHLo++fQu1vcxLZ2zIhqZi5K5eUz5fvSbCt9XGGvnSqFEBc1xxTX0Rw 2rmYA15W6/Oj1zOQOgyaWH+Wi6NnbRJDa7VXzdUuz64Cu62ItU3XrYtbgHM3JjKnZOgg YsNw== 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=m96L+zVQUR6AnDBWXoAHTXEu/tNBSY5AnJri9rNBEEI=; b=cry86+KbK02bbc6MlMCaQ5Ct/75XIEimZkNNBB7FclOB4+lMWX6nnFSvOeDoWtTVn9 GVdvDfSBtM/xzcm4JP2bdUquvEvpqVu60vMk2yGkKV54wb2r+KUQsIqCurGBh0d7tNXd msN8swtQnWQheX/7LIQSOvlFitiy1wXwhHaiX1FyJTvHwHyZdu3WtNCVJaYcWNfpnZ9n KFZKhzxCPmMs9zsuYLybW6dHEbewFac/I499LEtapQezL3V1FrSwn33oZ00Z9hTsBOMn /d41My34mHSGXuTj0aieO60I5u931hsZK0VOfFJkUFM2qMuO0gkAAK2Yx+RVfYnWNA8/ Ophg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=Y0hjJinS; 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 m33si9236950jaf.66.2021.09.14.00.36.07; Tue, 14 Sep 2021 00:36:19 -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=Y0hjJinS; 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 S241172AbhINHhL (ORCPT + 99 others); Tue, 14 Sep 2021 03:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240868AbhINHgd (ORCPT ); Tue, 14 Sep 2021 03:36:33 -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 94718C0613E0 for ; Tue, 14 Sep 2021 00:34:33 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id u18so11983958pgf.0 for ; Tue, 14 Sep 2021 00:34:33 -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=m96L+zVQUR6AnDBWXoAHTXEu/tNBSY5AnJri9rNBEEI=; b=Y0hjJinSBRIbrKfMVhAkCDp86Gz7tBwHyDz8ynbEIsICEuIt8cCVWfa19XoTVfKVr6 iK3B1qUIgJuNqbVpIAiujCfNlFxPGo2o7L2KYY+JVh7XHWaqY08O0bVjWUunkwvUtHR0 zdwwmbHa2Qs/YpRQjPWeB7HqWhUrAFlyO2MkLFB90Z/6H2V1TBxBacKnADuSA3GHns7q mCa5+IK8uXxjLu3yUjiSwSx1sbAgJxQKieCkM9RudG0n2qQE0NfXlp1JoP8c1VyPPpfj EiDKP6kikslkO98hgqx7q6ZxnG31L6mcG3CLAallv8dDWoA7qq/tuYUuHo43DWBh8wTb 1l1w== 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=m96L+zVQUR6AnDBWXoAHTXEu/tNBSY5AnJri9rNBEEI=; b=Y4JQJfoFegqA/Grn21pBM0sLLuNJuX6KMcEplWO66bKQWhxfq4FafibYXT+ZlyS6X0 8gdvOw5pKcwDzYLQl7nMPxVjUDYz2qUy94P3EKPWzg4TjdoLM7JexrPrx1lJWd9Gr8tr DCkcdblHLxf524i5DYTkgdEG98mnDl/6G28gp22Z3j3DNnHPwggm0zl+f29D4QM4+J5k TYhssQY98UYw2g9YLWfdPLB4boiufS0jGkszntVqP38ahrC7NbVO6wlXBmJtpcpn1h3e a/ytFc2VJmU7sMcZ8gZP3/VC5IownolpWxyh/QIsmrL9EdOAgkHUQwkh8Ryowo0ifQnU jTsw== X-Gm-Message-State: AOAM530wEFhuc0RVCFZbmXFZ0iSF4tRk5E3wRZ1GQoFOWa+7PwR+bW95 2uE6GTu1CySanDhaWjLwMb36jg== X-Received: by 2002:aa7:8d10:0:b0:414:ab01:656c with SMTP id j16-20020aa78d10000000b00414ab01656cmr3315679pfe.13.1631604873164; Tue, 14 Sep 2021 00:34:33 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.34.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:34:32 -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 14/76] afs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:36 +0800 Message-Id: <20210914072938.6440-15-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/afs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/super.c b/fs/afs/super.c index e38bb1e7a4d2..0ecea5a94af9 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c @@ -677,7 +677,7 @@ static struct inode *afs_alloc_inode(struct super_block *sb) { struct afs_vnode *vnode; - vnode = kmem_cache_alloc(afs_inode_cachep, GFP_KERNEL); + vnode = alloc_inode_sb(sb, afs_inode_cachep, GFP_KERNEL); if (!vnode) return NULL; -- 2.11.0