Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp445270pxb; Tue, 14 Sep 2021 00:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAlBLD8Sh9xtcb4+dW0OFWFLthePphdgt065hvI9zMKY+do0dHsQnIOsUe9I2Wu0o9FpEp X-Received: by 2002:a6b:2b97:: with SMTP id r145mr12355301ior.193.1631605495240; Tue, 14 Sep 2021 00:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605495; cv=none; d=google.com; s=arc-20160816; b=Yq8zy187cnPWOSzz6VzSrRmfNOsdV3FmPqub13TqPG7LZZaLJGRrz6RSte5G7nJPW4 fKKxHIRbmFaIg6WUNezNrRYanXeI9M2HQSoaccWOyD0So69IKTSI0jQV3Q7aNaE6HIjQ Aq6OuBp5SCGm+Jn6QHYkNkZO3WDnft+S5FtfcOmy8TS4aP09rFHPY0MfOxn8i35Cllek 60PM8HgnNauh2TqrWMCT6zb8IibnDr6ta+/2k7mFEduJUyz3y27eohoIwqP+jmbi9Yvl 6FMqkI72Yh0+apKtgYKWQ3Pw/xkUxKexO0IAuAM5Bxcdgd6drmqyaVeUDuQGYYq7EDh0 QM/w== 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=s0gIedj0uRl6kYfJTbilxSjgpDw4b49jX6h+L9evK1A=; b=EMHbIiVnbMO5WNWsIPTqH7u02Q3he6ifaqc/HaeDnPI91Ew2DdRUoaGsvkHUHEcQ1w yi20XyXUoNxPe5jA8GjIrmvikWKgX2AxxZ04nFJo7TJ37PV5Ry5dkYm4aprNs5/FWrrG x+OsyW+UIQjxcY4k+VwR1hgsLkYXBhTqziwn/JrLE9g7Wkm16o0581j2B8q7fs3RNwHJ AVahAs1xD1ICTZGoUzoSD0aRdRASU//neGyJ1YkRmmd07NLUksSTVYMTgmPr9UWPbHgv T+lto8Js6yfP2ZbQMS5n7Df9hmIJTA1wPfSfjw1U2CgYYCIyi9E9bL/fhubRgZsEt07L iRCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=YcE8Qvsw; 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 m12si6739969iov.37.2021.09.14.00.44.43; Tue, 14 Sep 2021 00:44:55 -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=YcE8Qvsw; 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 S233024AbhINHox (ORCPT + 99 others); Tue, 14 Sep 2021 03:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234425AbhINHoF (ORCPT ); Tue, 14 Sep 2021 03:44:05 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CDB9C0613E1 for ; Tue, 14 Sep 2021 00:39:53 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id f3-20020a17090a638300b00199097ddf1aso1500073pjj.0 for ; Tue, 14 Sep 2021 00:39:53 -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=s0gIedj0uRl6kYfJTbilxSjgpDw4b49jX6h+L9evK1A=; b=YcE8Qvsw9Jign0OLffDdLQTSWfd4ueUGxnw3H7nKu0CGfRee7lRQE1hCIMnRUNNGl3 s6T/wrouUpAFKefJnDIlgErM20da5IuO32Z6soWIBPuJH+KrYllfrXv77Hifc6KQsJYX lI5aL2gWB3BEAmHwPzI8L+nfa1ZfuyeIcZh1DGf0t40599ced9gd8Jjem1KoPZCEbdGf rqEuzeCYG8DKB+s6XPGaeonTE7Mq5sWDhAPE4UXQaaCbThMCoCsqnX+E44V9nM/+P5aP z8YPeJUSJrEqb2cpL2Iy7xBK4GKdBhVRBZxUi2LJIlSmLwwjclUWxitsjeZVA/h/EQEH dgwg== 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=s0gIedj0uRl6kYfJTbilxSjgpDw4b49jX6h+L9evK1A=; b=4DPIKbCJ8ji43kbnwZSDlAXgJAdWOt1Sc/xo68elow+pnATYiTtkebNEwmEYcyeKJY sWCL042NbufGFRvhtY7HWe8vPF/AuA9dexl5yfcnNLmSvM2gZi9fPbkq69ljWR+HXBIk N6oSkzAFcsNi0v8uDlJNXeMle9Xm2rcm2ep0cf4s466d6Xmy4NASkyS8/t6XHPze+Qf2 wfC9EtshllbSVeaWNERC3dxhMQ4OLFuDaDABUFAH880gh4pWiZuVHvfcTT2jG5IJz6MG 8/MyJ6KrYCYVGAReNzckuQASuTbPujfKLjkBSeq8fY1j5cj9iYV+tKSOPIjxLu1Sll0L RcHA== X-Gm-Message-State: AOAM533k96JifljwS7qWz/o3wpBT4mkg5ut6o6c34DbYwXRtgsSqUj4t tJ5/HD/oTNduy7h1PGYp/Ny2sA== X-Received: by 2002:a17:90a:4ce3:: with SMTP id k90mr532351pjh.237.1631605193043; Tue, 14 Sep 2021 00:39:53 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.39.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:39:52 -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 58/76] vboxsf: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:20 +0800 Message-Id: <20210914072938.6440-59-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/vboxsf/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/vboxsf/super.c b/fs/vboxsf/super.c index 4f5e59f06284..050ef855158b 100644 --- a/fs/vboxsf/super.c +++ b/fs/vboxsf/super.c @@ -244,7 +244,7 @@ static struct inode *vboxsf_alloc_inode(struct super_block *sb) { struct vboxsf_inode *sf_i; - sf_i = kmem_cache_alloc(vboxsf_inode_cachep, GFP_NOFS); + sf_i = alloc_inode_sb(sb, vboxsf_inode_cachep, GFP_NOFS); if (!sf_i) return NULL; -- 2.11.0