Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443914pxb; Tue, 14 Sep 2021 00:41:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7u9sgNbV1GcsIPc6ErakIcXdgTpRA726unbf0eVHShuqWOq3/nHcSh6mvYJFpLbpvCKzF X-Received: by 2002:a05:6402:5215:: with SMTP id s21mr17932577edd.236.1631605316027; Tue, 14 Sep 2021 00:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605316; cv=none; d=google.com; s=arc-20160816; b=qtrov2tjJX4/uJWy12/Ez1nOm5pVOxrXJj7n8o1/35soyhhImfC0iRHAfwlUJBX60y E5ooV+EseZ7LQRCUeAhVXYTzBksb0xNcnjZkP+A4AV4HWBj8LZB0wt3M1lUf8kBNktJV DvCEaVjA+etNTagJR1hHYWdVL7K97tXiWQmQGuV3TT/wPb79sr46JNMJyiI4ecZOdDHZ tOvrEgRpJF8lZ6v+vMepQ1k1JNgT5cB8xoWd9klgjiS5S3OXtTNBUmXJu+3QIH0lp6Dg vir7pcys0YgQvpjI2F+OmTYYw8X3Qj+eA4pYxfZPjSiW/tU/Pgnku7i6oar9SzIBi8/k U8RA== 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=8Qc/LiwupPFvLM5PjYz1016FD4bXKawBQsMG6Y+2qQc=; b=DMwGLcVu/WcTWuruq9ZJppgWOxQTof/T+eKq6jCXSaIBxLNUCTxMkdm+QnH4mCZ7NY 1JVJ2NaQBPilMc8wV7rCH3o1UwnkC3Nzx2TP7t1F+e4ytNHww+BiUCrIIoJ5b/GODZAM 9dvSWMm7JHq+eRDPFaptpByyIVxesxlHjhOuauRqVJ7yKDNe1YJVwdDdKUaGOXaS+W84 332FRv5/EF+NhGCCCXamP09TRy3HiQvk0KhoxvQRlikRvNiixx+/HP3jg2iy9S/i4wW3 Tu1FJlhsqrnZvzijPC3uLkzwO1GrWasUIh5I2TQdaJZoNCDSb3CfUNLxIt1d7K86NVDh Nwow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=Vt4T+99a; 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 j4si1889265ejo.567.2021.09.14.00.41.32; Tue, 14 Sep 2021 00:41:56 -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=Vt4T+99a; 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 S232638AbhINHmp (ORCPT + 99 others); Tue, 14 Sep 2021 03:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241640AbhINHmU (ORCPT ); Tue, 14 Sep 2021 03:42:20 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC9E8C0611BC for ; Tue, 14 Sep 2021 00:38:37 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id k23-20020a17090a591700b001976d2db364so2067258pji.2 for ; Tue, 14 Sep 2021 00:38:37 -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=8Qc/LiwupPFvLM5PjYz1016FD4bXKawBQsMG6Y+2qQc=; b=Vt4T+99aUqqmK/2gRbOdiuTv8LFaIEnqMYscXlXYrrXZ9klxmtSKfdh8ea2MgqYSfO NnQS/Nsp4yjEsHeMD1eoI39VwM+q+33icicv11HpoRFb92fPs0y5B0jTlqWXyroZTm5L 27H0F/8ukxcLz+lzc4pkfDte0ofTVl1cM+AZck8nCWhKYWVMqez2otMrz/VdanyIjf6P 6QRsryXSIR/it0XwcnDjVH9lS5nRcQ/gs/WzzyXrch/ehXNE2TQHcyzBGMzZgNgibUfn 3a5saAN504MO3x0ZUlQR+AfRVeUKFLc+Up+oi5X5/beXqlWX1B/omQF66oO0u6ztjAJW zhzQ== 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=8Qc/LiwupPFvLM5PjYz1016FD4bXKawBQsMG6Y+2qQc=; b=SqdEZa+LG56BmR8z3fr7xgTJ5WJ+TLJHftvpR7IweX6im0pM6CnzRs5b5ywO+bVzii wKUKazpRpaWlB8vyROYfpDyFTV8gfOExXLtfod2dhXXJssALqmNf69CmE8/WbktFVZhS Ld7BpC0N2+ubVs2sQm90/op/DYac0oZ4QCUdb2gYnC2Z85JbpScTCOY3n36mPw7kPX1k cnS8ZfkWrJr0aOR+XXa+xdAJAjgg16Fl0NX1yTeXBISeStTkPoickseaBTP0Gt2WH9Al Axinshbyam1DrpNFk6wg47dkpEEAxs9s9Zg/sKfbjmbc5dQoT6e+XsUq8wKSDx8xUzcU kP0g== X-Gm-Message-State: AOAM532RPaDJCQ0ZTXmOVBmgEkQEpvc1CAgIPQLbdDw1bJ2c1A5bEJOQ /WGfnEq35qvN1ZK+fWCcziq1EA== X-Received: by 2002:a17:902:e0c1:b0:13b:76f5:c3b4 with SMTP id e1-20020a170902e0c100b0013b76f5c3b4mr13740150pla.85.1631605117505; Tue, 14 Sep 2021 00:38:37 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.38.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:38:37 -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 47/76] overlayfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:09 +0800 Message-Id: <20210914072938.6440-48-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/overlayfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 178daa5e82c9..0e2a38a0b857 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -174,7 +174,7 @@ static struct kmem_cache *ovl_inode_cachep; static struct inode *ovl_alloc_inode(struct super_block *sb) { - struct ovl_inode *oi = kmem_cache_alloc(ovl_inode_cachep, GFP_KERNEL); + struct ovl_inode *oi = alloc_inode_sb(sb, ovl_inode_cachep, GFP_KERNEL); if (!oi) return NULL; -- 2.11.0