Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp441650pxb; Tue, 14 Sep 2021 00:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx82OGYdkBtLZjEHHg4PtvCnhqHpFXmHWy+B0rOkaEtIjZV31JP6acMC/irTajzNJZinVSd X-Received: by 2002:a02:7355:: with SMTP id a21mr13230348jae.53.1631605043468; Tue, 14 Sep 2021 00:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605043; cv=none; d=google.com; s=arc-20160816; b=T4ICwvvXlDFJelqAJJnApu/Y8o2s5MgNb8Y6bNHRBZdP0H39DzV1k5/IcXsbBix5rM XMh8jhnbjfYXjS/nD2lpbLeTRXnEhRkM9bangQbpQK4+c8+xbOKmzHUy9hzLjzFJD5tr +wR2SdUIXND9d3Ymctif431nR7fFQnh8ovmJDF4dhVmXikg3Iq1YLcY33Kf7tebIq2oj yy/PsLPxQhXCg4jt7YwH3G0U8fCHPyFhuStI15Ay1L4Om8u0BEJV1jaNhcPKiAx+QlY4 /brJDKUz6lPEPfquaq1EYbv24FOwrNV1SD6olRS5VV5ehkgxJWzLbPsD1dudVFuuaubv Y0qw== 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=70dZb4sygyL4z0x1TtZhkqlyiFHEDmdlI4RF8O+Vt1A=; b=vXOZx4QYPFdFv6UJ83ePOj3h/Y1ws8vQ3V6/8lzPn1Yxb1O7sOmTDSgQaJAAwuvfjE n95mJBHPHMupQOhUzxJN5XTde9WSMWn9ZPpVDmM3oWVbWocvPMsJ76o70h4L4JbPOFHr wgFDK1v2SqpW45l0ModNWN2vbYag9ThxnAl9m2PzLj1b9A0T/qcqRTiWx7Scow3EaOcq 4cHbuZNuMGYrRxPFEWrRUvzuTf8i7ramDfbPfSWwZ5t+Tdq6ZkSjDbce1yF6s86dlgW6 pKiASIbimDg6FHCcGujhQUIhvfonSi9BiSrk4IP0foyYEXqxgv1LP0/nUnlNe1Uurk9l wdEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=zJXxJLj4; 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 a10si10921937iow.65.2021.09.14.00.37.11; Tue, 14 Sep 2021 00:37:23 -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=zJXxJLj4; 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 S241110AbhINHiP (ORCPT + 99 others); Tue, 14 Sep 2021 03:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241177AbhINHhm (ORCPT ); Tue, 14 Sep 2021 03:37:42 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06BDC0613AE for ; Tue, 14 Sep 2021 00:35:33 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id w7so11904749pgk.13 for ; Tue, 14 Sep 2021 00:35: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=70dZb4sygyL4z0x1TtZhkqlyiFHEDmdlI4RF8O+Vt1A=; b=zJXxJLj4ESHJp25Po9c+bepEEQGcRbSFaDV2ROX2AMMoOoCP9TQExmc64Im8VFxp5B MUbQMCkQxxxkYmZCMzfBk6z8KLOFhOhku7W9pC0lFQPcLJ1LnGL4cdd+u1XWHfqEKaB3 M/X9zlmNtovkUWmhhmvxlhBvO4p6EWob+U3epYvIHJD1ZJdbV+P1jW99NMGCAhMDPZnf NO+s0pwOoHRfDHA6amvhUyJItcpPPx/tURrq9o0lysXBBNnhuKjiPxZ2VUdVk3AO5I4B Ykd1TfvSaYv1qtzADmeKpO6qgYm9J5Wty1ohHvctCi6EFvSx5zps2XBMXfVs0cxgiR9t 5CFA== 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=70dZb4sygyL4z0x1TtZhkqlyiFHEDmdlI4RF8O+Vt1A=; b=Wd25gJa2GD7GBEyNnGEvDhl7HcXMQ2X/Tk5353RW2e2GD2TwbUIfnqui4YhIQ8e5a3 QOSFYHYAnJvmpH7X1Ag2c3tOrd36cdBDM0dSMRTBMHQVgya/hLggK6af9V74UEHeRJpg 2jNQ9MAfD11w+qkkvDxP4nUMMJLSj1ZeE4vvMDYzauS/pwcPcwJeouVaHKcEwlPBf3p5 0ZqpGo8qXXn2eVZRGzmSvhUCmWN8FnmfdMEBgPb5nMaH2IadsEuysKzbvsX2YtPUofg9 hsqdqYp/6f5eOsaySx0QiCfsH9Yv4IvSsgBAizIBNgSGC9/0sRsK1aTpwVwjHkamRXIK vqOw== X-Gm-Message-State: AOAM5333sRsmesCUv3DEZ6YHyOleZEu9/4M5ykdlTOcKea/VWKfK1HoQ ktECKUrxAShoqA18QqxkKXJ3XQ== X-Received: by 2002:a05:6a00:21c7:b0:412:bb0b:850d with SMTP id t7-20020a056a0021c700b00412bb0b850dmr3476534pfj.33.1631604933364; Tue, 14 Sep 2021 00:35:33 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.35.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:35:33 -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 22/76] ecryptfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:44 +0800 Message-Id: <20210914072938.6440-23-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/ecryptfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c index 39116af0390f..0b1c878317ab 100644 --- a/fs/ecryptfs/super.c +++ b/fs/ecryptfs/super.c @@ -38,7 +38,7 @@ static struct inode *ecryptfs_alloc_inode(struct super_block *sb) struct ecryptfs_inode_info *inode_info; struct inode *inode = NULL; - inode_info = kmem_cache_alloc(ecryptfs_inode_info_cache, GFP_KERNEL); + inode_info = alloc_inode_sb(sb, ecryptfs_inode_info_cache, GFP_KERNEL); if (unlikely(!inode_info)) goto out; if (ecryptfs_init_crypt_stat(&inode_info->crypt_stat)) { -- 2.11.0