Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp440432pxb; Tue, 14 Sep 2021 00:34:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoovph40E5fsBWgkq6WqyArTQZuFejYeZw6lQVfKCwnHd3o1raKVoFYA+gOp80fTKSQUuZ X-Received: by 2002:a05:6e02:1ca9:: with SMTP id x9mr11026596ill.164.1631604898487; Tue, 14 Sep 2021 00:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631604898; cv=none; d=google.com; s=arc-20160816; b=O8iPZI5tho6HHL7PxZKpVPw3MUVeaWN8DaXxvkoJBrvVqcBvEGhuRWwRMbqJTk06ms 9hRxgNjnrGagHxM+g99wt0xc4/WjH0dSrDqLEBtl+FXCiRvqJv0okFw5mjP+q0ov2Tar ohVgFp1YM1MlOIdJXj3wxF7QEkvK8NhP2j1rfnl5a7AGwFakDeYs5KQ6ZI0F98T4UYv6 sHPXNLNlvmF7JU8fLKPzWyFohXudvZPqVUiGyYJdgOD8toMx3oscWXX2uW46pMQr81aZ O+M6HjFWLS4mVmq0ZidzWHBYJHUvjO2IdYIUasu1/22NcvuRwNMVFL4L8ha95hV+H8Ys Tm7Q== 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=Een1sDBPrj2tYW3UgVidRn2hFKpvInjKsC4lnzv+r+s=; b=raod1qbtRE0YUheXMUAt8s4+i1n7KMTfvAW8Bm1u8GsSNekKl21gSqxrZ1Wkslfec2 2Csfg/9UEnkP+6paWMH7E6zN2LeeAEfr+wANtBtSAg2x4vyUguwuytYbzjjY/37uzsvy wR6I/Qo/pw1+Z+UU+Vvr7nGDe9J3hRmpvODLCOH/XNCDamqUHBDcVDPpW9iD91Zi+Oa0 vHvBME+M8PP4OqhfyDpFR5LTMlynKuBc6kCruCBLAWrPtM8vkpYDOHmyWebEtee5quzN FQiibMBfjnhZXRye8YJBfCJp3z3+udDe6bNh3U0mNTaphvAVGeEjMLLkXGoqGJruoxCf pajA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=hwfQHv4Y; 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 q22si8695240jae.93.2021.09.14.00.34.46; Tue, 14 Sep 2021 00:34: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=hwfQHv4Y; 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 S239257AbhINHf5 (ORCPT + 99 others); Tue, 14 Sep 2021 03:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240979AbhINHfc (ORCPT ); Tue, 14 Sep 2021 03:35:32 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59BCFC0613EF for ; Tue, 14 Sep 2021 00:34:04 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id j16so11354748pfc.2 for ; Tue, 14 Sep 2021 00:34:04 -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=Een1sDBPrj2tYW3UgVidRn2hFKpvInjKsC4lnzv+r+s=; b=hwfQHv4YyZFuK8uRdecl6UJ4ZCLL+YxGBmSPzJfSBj+cNX0RGj/vjS2huquwqR2eff 894MlelcvOoW2PXCHkdchBqg5JUCefoMMCAC8MR03VHs8yMafrYb0TeXP+3K5mV5REeD 482qt36XpQMzllbc+46p7H8rLB98khauGSLxtRet0z3aIid/fOJpRD2DoUCzkst0ZBMc vjfu9UiPtpxcX1uhiLA8iY7YU9A2PEZZDB/g2RyO4gZf2oilHmwW/8eePABd1A05Gqkx OUBnQfpEhAiz43za7C+MvI08abWGRBjPx6qmSW/y3/Nx6pphrhq6xFOnko1qnD0RVtXv aVkw== 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=Een1sDBPrj2tYW3UgVidRn2hFKpvInjKsC4lnzv+r+s=; b=fRrzJe89Mzqdb8hl2CNk6XovvffswQVY+fNdtyJLUYY7lvGUgToGd5lyasS3Zagl+E M54YJCBet4dQL4mMBcH2LVJWwVxpWK2BwKajH5ztlh0/2q1sdqruNg0YcycRk9bdsMzD Ovyf7EOjyJHgaklXxAqalwhvO2hZDYbqWNy5vm+9L2V4ByuBPOmW208deCSx6rjgrogB vmvxYxv6F1y3dOqInGJfaAdiw0UWOcfCUKjyXy1bIjQgMlDLCcODQXvlRugCKLzLJx40 FZUpEqRcsMPoLbe5WPeoXQ6LK+yLvUVJkDZqZMscTN3GDGeYO3/CBA5d1oU36UdtASPY 8ufQ== X-Gm-Message-State: AOAM533dMnwIYcp/jMMmixDjNen7pkHqDv3IKYgIeiXCgUNGYsGNJcFe RujG2UJuMvH0t0OIHylUFBtqbQ== X-Received: by 2002:a63:8f53:: with SMTP id r19mr14599042pgn.84.1631604843947; Tue, 14 Sep 2021 00:34:03 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.33.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:34:03 -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 10/76] dax: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:32 +0800 Message-Id: <20210914072938.6440-11-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 --- drivers/dax/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dax/super.c b/drivers/dax/super.c index fc89e91beea7..288c0b85bb77 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -447,7 +447,7 @@ static struct inode *dax_alloc_inode(struct super_block *sb) struct dax_device *dax_dev; struct inode *inode; - dax_dev = kmem_cache_alloc(dax_cache, GFP_KERNEL); + dax_dev = alloc_inode_sb(sb, dax_cache, GFP_KERNEL); if (!dax_dev) return NULL; -- 2.11.0