Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp441525pxb; Tue, 14 Sep 2021 00:37:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLNQdzb1XUgyMbCHBpnELHiQyRM1YG6V1uNwPxXx7Z694+99hfTSp+30GZehunyTcWNVTh X-Received: by 2002:a05:6638:3881:: with SMTP id b1mr7575623jav.132.1631605029457; Tue, 14 Sep 2021 00:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605029; cv=none; d=google.com; s=arc-20160816; b=YyAkz73vTdmTcuF+EDD4yfE+QSjMHJT+BHUQ0YOMRNlKTJ0P3vxToJVTenvBxROrM9 1yFJbRj8Li3mp8CLjB6xAQEcapmAUTgeggKmeoN1SrCVdHQ9Q8WXbsNTbYMSVIG8122R ksbjV+ToD1IyWxaCbzhYLsgJVv5M37KabdXbMEJ2ji3tuL8yz1ndv9i+TXqzYfkBtHl6 ZX8e8Sz+g2eUaJy1LNqapfFFo7HVtozX3wpwHv6Wl7tm3PxaLAXeTLAzZIbXNsJdNd5W F7lGi+b75KovMxiWKcEkenT0NulB8iuIfFM+nl4vx2oU84PEpaaoDc040EJNeeM+JGTv hEPA== 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=Yn4GjbGKOalkp7KyXghKb9kUqc+WdE7xPBBNtSw49kg=; b=b1A4AmXfvCUSbnkFzqtWDfpqJQLY5UEBg2HQuMmX3vOsz7/d7+0uM5RiCRLWV89qYo pF2gAZ+JG2471JHxYsxMSwOdK2uumbhTR4fmmJc6wb0PFOdppVzPu6270PKsXXtNuOBl BNZ/DduGnYB+lbLPdl1p+t8ARo4SUt8MlfQY81ba7MFex4ZgV3cfpSpuYFIx7grVU/5M ZUdDhKfmMRFn7s7EzNxDcgyhqLfuJotRkfY+WMuVejmZYdqRwwM7ubj+kuMNkwxgXAN3 4D9PTFyzyjPaWCA7Dy+Ecf5x2XlddqUh42Fp519Xe/hrR2Q34LpBxDnk2MxNo4L8+6DQ 18BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="npB+pVn/"; 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 o1si8155292ilk.81.2021.09.14.00.36.57; Tue, 14 Sep 2021 00:37:09 -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="npB+pVn/"; 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 S240963AbhINHiM (ORCPT + 99 others); Tue, 14 Sep 2021 03:38:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241029AbhINHhi (ORCPT ); Tue, 14 Sep 2021 03:37:38 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEBCEC06179A for ; Tue, 14 Sep 2021 00:35:26 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id c13-20020a17090a558d00b00198e6497a4fso1444687pji.4 for ; Tue, 14 Sep 2021 00:35:26 -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=Yn4GjbGKOalkp7KyXghKb9kUqc+WdE7xPBBNtSw49kg=; b=npB+pVn/vbn0eNYwtlSthJv7NBkOrOYMdLVzNAnEHX0BsO73iZoa66jGaFaG5addC0 cgJiTpm3Pv92k7hEjsZ05n4vWim9yUjZaflyMTHnB+SIxMH42+iuoY6FtWyfDm6T6uZM /SvJYTj0xZW4myvwa7ToEcgOpprF6LR7VMWYknvR26p0Qu6ZqxtY5e15cZta8W3aeblP Pu8Gyt1UcMCae2DKj9uC8co129TdSbpSUsUFBHsAv3ASerGOo92IyrNVp7P5ai0EDton KJkkOJDmM35KKrYqDrF7k790Srij5c5bn1mgnYI3eLrodF7RbhmMbZFUPZCbau4exCN+ lHWg== 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=Yn4GjbGKOalkp7KyXghKb9kUqc+WdE7xPBBNtSw49kg=; b=7B58te3NxoZvVHbzO4qSbb2g2u9pP5TR9tJ+VflEpuVLuFFYSiK+n++dj8gDJM0hut 7YlPEXSQs1IlSYdIaT5bE1rmgkmN5JYFE0rKxDeMfViY9Fi+oATbVrbwEoEY9JPZBX/K 8toxbfikG/MWr+2Za3yxebEqWBPos3VQFlwkm6Pp9I9kaxTOKnSSRnIwImR+9VYpPjaG iULF2uc0U/g4z7wDMyK+isPvJpTc5BUzIkrwq1j2/F6uRL7SJdY7WfCq7w88cHDyHwHl PxzTkRMlIODISj8zzySXkrpBYWEKrOOu/llLSMCtzxwqjZMe2DQiBv2//UL+EZoZ6zdB 5jSw== X-Gm-Message-State: AOAM5301/WkrSFeeHyg4oSsjQ+D92KqKvGJSxupKS+8SeKsgysCcfVHD UfA9MSghoGWiiCezLN2jWnZdbQ== X-Received: by 2002:a17:90b:1bcf:: with SMTP id oa15mr479092pjb.58.1631604926427; Tue, 14 Sep 2021 00:35:26 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.35.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:35:26 -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 21/76] coda: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:43 +0800 Message-Id: <20210914072938.6440-22-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/coda/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/coda/inode.c b/fs/coda/inode.c index d9f1bd7153df..2185328b65c7 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c @@ -43,7 +43,7 @@ static struct kmem_cache * coda_inode_cachep; static struct inode *coda_alloc_inode(struct super_block *sb) { struct coda_inode_info *ei; - ei = kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL); + ei = alloc_inode_sb(sb, coda_inode_cachep, GFP_KERNEL); if (!ei) return NULL; memset(&ei->c_fid, 0, sizeof(struct CodaFid)); -- 2.11.0