Message ID | 20240821112254.624814-1-zhaoyang.huang@unisoc.com |
---|---|
State | Rejected |
Headers | show
Return-Path: <SRS0=TqEJ=PU=vger.kernel.org=linux-ext4+bounces-3821-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=tqej=pu=vger.kernel.org=linux-ext4+bounces-3821-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wpl6x0H3Xz1yYZ for <incoming@patchwork.ozlabs.org>; Wed, 21 Aug 2024 21:51:52 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Wpl6w0SCjz4x3p for <incoming@patchwork.ozlabs.org>; Wed, 21 Aug 2024 21:51:52 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4Wpl6w0PVYz4x7H; Wed, 21 Aug 2024 21:51:52 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-ext4+bounces-3821-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4Wpl6v3KpKz4x3p for <patchwork-incoming@ozlabs.org>; Wed, 21 Aug 2024 21:51:51 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3AA12B29CF0 for <patchwork-incoming@ozlabs.org>; Wed, 21 Aug 2024 11:46:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B5DC1AF4DF; Wed, 21 Aug 2024 11:24:54 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3E23165EEB; Wed, 21 Aug 2024 11:24:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724239494; cv=none; b=EL4tuxGiaNHpeb15Neb+5MTjd/alaia9ZuqUV+dkkftJ5CYKEcxPqfT1lqYmLUcdl78Bi+Yh36St1Jyf/hLXwAqhHwwS2xt2nzUuOTPbA3fKsv6ysCaZqTv1llJocV0fyihIb8u2EqMTiO6BAa7NWfPAncxXtBVpEb/SzVm26LI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724239494; c=relaxed/simple; bh=0Oa6GA6RXoiqPHaf6R9MMDIqIwy5sj0l1kCiHUBrnIg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JXKgFG5Gu5t1ZCQPbsL7YOpVzQDowFwLHYL8UP+7wI91xBenkT5FjstYIir+hbStXM05WsvBv/fZ6B0wYvKjh2VDpcvENElrNdVxU9bORnu1m8SeJjq/QaqvZAiX+zhtyZrc4tyDMU9jyijD8Sl/gdh76IQiiiYfXqGEWTarIAw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 47LBN62v099503; Wed, 21 Aug 2024 19:23:06 +0800 (+08) (envelope-from zhaoyang.huang@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4WpkL80Wdzz2K6x7r; Wed, 21 Aug 2024 19:16:32 +0800 (CST) Received: from bj03382pcu01.spreadtrum.com (10.0.73.40) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 21 Aug 2024 19:23:04 +0800 From: "zhaoyang.huang" <zhaoyang.huang@unisoc.com> To: Baolin Wang <baolin.wang@linux.alibaba.com>, "Theodore Ts'o" <tytso@mit.edu>, Andreas Dilger <adilger.kernel@dilger.ca>, <linux-fsdevel@vger.kernel.org>, <linux-ext4@vger.kernel.org>, Zhaoyang Huang <huangzhaoyang@gmail.com>, <steve.kang@unisoc.com> Subject: [RFC PATCH 1/1] fs: ext4: Don't use CMA for buffer_head Date: Wed, 21 Aug 2024 19:22:54 +0800 Message-ID: <20240821112254.624814-1-zhaoyang.huang@unisoc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: <linux-ext4.vger.kernel.org> List-Subscribe: <mailto:linux-ext4+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-ext4+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com 47LBN62v099503 |
Series |
[RFC,1/1] fs: ext4: Don't use CMA for buffer_head
|
expand
|
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 941c1c0d5c6e..4422246851fe 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -869,7 +869,11 @@ struct buffer_head *ext4_getblk(handle_t *handle, struct inode *inode, if (nowait) return sb_find_get_block(inode->i_sb, map.m_pblk); +#ifndef CONFIG_CMA bh = sb_getblk(inode->i_sb, map.m_pblk); +#else + bh = sb_getblk_gfp(inode->i_sb, map.m_pblk, 0); +#endif if (unlikely(!bh)) return ERR_PTR(-ENOMEM); if (map.m_flags & EXT4_MAP_NEW) {