Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2451673rdb; Mon, 20 Nov 2023 11:06:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2FVK00+8ewcQ6EDL4RzwfKhfcG8otVmIa5lL/RgN8FDl+MChQUKbZbL672EJGi0DRG1th X-Received: by 2002:a67:f64b:0:b0:45f:ba80:215e with SMTP id u11-20020a67f64b000000b0045fba80215emr7468227vso.8.1700507161754; Mon, 20 Nov 2023 11:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700507161; cv=none; d=google.com; s=arc-20160816; b=icyEvECXXMsZ7pE0+6IE95Vhik0dw7huniA5QccEA8xTqPoHQOl5XqisJDGfnXLj13 z8hEQrbehjInbVsFEn8Dl1MxMNswZgLOVtpyqFkmiYIDMp17CZ3wghxhwhNhvUdgMesl RGsejOELfPM4FNTdA6onM4RzAdnymkOzBGd7asDTalCBxfD6pIl9pqEmtR3dyKW488AD x8I+r+CWBzQ9siqTL2HId/6u3ZMc7LtW4+/fAx4QI0kIcnNm+pCWZaUL+9xMGCH2WW0F 3nM8mTg49CaIkZpHwX4KuK4psXxDQDb1M1VQCKsajpt5GQuqzJTYSHXRsrFP1keWwvQy LdFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rhpwrRa9HQ3nKZT6vnn9bXvfK7gw9DLuWfU1NPaPpJM=; fh=q2T2uyxabLuVX4S/W8NZDfBohRfsbIIcfEh1O14vzCc=; b=ryQ1GBVK5pO15vdFWkZpzbOS7WRjZBiQNhjlhTiVO/HZWLeHwAfwg1T1cQoyrjlJKC T00ey0N2+2mQ9c2MY1T2lV8PYKkdazEE+UxThACDYWNivIcWMwiAsi4cxBxKlIPgwcQV j7wKuF4CgAcJcN0XK1YOMMLeK4XvGs9+MZ2MRMmmUThJ5RvADT9qaG5atPUKBLcN799N VXnYBYdUgLjazx6Jgy+sjV168Irh81fKioqm3380WNKwB69+EhgUXAhB7bYuW3XSthhh J0DuNC7uutYagbQAwS87q3f7ojCnRKMuNNKc76cuA65lOpqhLR5uzfcR3VzXbQ6Dzffl HjDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BCEoO5FJ; spf=pass (google.com: domain of linux-ext4+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y8-20020a0561020c4800b00462ac2fea68si479042vss.264.2023.11.20.11.06.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 11:06:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BCEoO5FJ; spf=pass (google.com: domain of linux-ext4+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D4F581C217D2 for ; Mon, 20 Nov 2023 19:05:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 114AE34CEC; Mon, 20 Nov 2023 19:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BCEoO5FJ" X-Original-To: linux-ext4@vger.kernel.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 254569C; Mon, 20 Nov 2023 11:05:36 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6c34e87b571so3767335b3a.3; Mon, 20 Nov 2023 11:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700507135; x=1701111935; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rhpwrRa9HQ3nKZT6vnn9bXvfK7gw9DLuWfU1NPaPpJM=; b=BCEoO5FJl/T83w6LVqG6ZzoC6TPpxh3WbeWmRniERr+eQPDSwh6rjCwIeX+sUzTDfy dkWh4w0L831zdICI860ToPhJwyDOtdD8fUlhoNbgtl1/rLU7G+7iExVwh8kWEIfDwvYx 2bWaG5kMdRAbu3YclKdG/yFkmCIT6qzqM1krU1xaMsMpzsEUgYSC0gQpqa+jiXCgoweX bKDpc11xeYyanb9gx5NSqgnTwPp0ZHWGzZR/el17EEIqkxFFnWaZbX7TR6RrzDPXexEd jy5VBNM367RHZ7ewaZV6/JjZ+dPTCK+4LkY1vu53cBdip4idWFlorStUWVEmaH1liLPa a7Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700507135; x=1701111935; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rhpwrRa9HQ3nKZT6vnn9bXvfK7gw9DLuWfU1NPaPpJM=; b=E14aZPudWo1XMtQTR+FSG3JwE6fRL3cLhYJ9WNyJsBU7KYzjn59ucTRnMTMmBC2LoI lwpuMmGb0RHzqHrc6vzUQZ5umt/s7e6rNJFPPuEodL1JxtpcGkri1FEa34IoITB5Bcjk I6UGkIn9RC0qwejbm1i5Al2GsjTs61FJrbKeivNKC3+4JMQfc2mcUfzBL9y4qPhSk3CH bIreDgC5y79nObnahlUFTTu9CzsiAcSzEGl4Xbrz8QrCfU4H5WJYVz2ulY+Y6+AgXBLv J4L9dC8HKUhyCfuI0g7ERxOvxcxha5VGVK51OHK248aXtPpETrqk21sPNC4clyaSyUsP +Ckw== X-Gm-Message-State: AOJu0YxQIa+c+eLCvrp2/4Zrl00O+ZjEDq/pvEXwLdehVU1xCr6LOQ4d YctK377vej+RUh4OnbJq8seAltv54Tg= X-Received: by 2002:a05:6a20:9190:b0:186:c0fe:b842 with SMTP id v16-20020a056a20919000b00186c0feb842mr6854760pzd.2.1700507135067; Mon, 20 Nov 2023 11:05:35 -0800 (PST) Received: from dw-tp.localdomain ([49.205.218.89]) by smtp.gmail.com with ESMTPSA id y10-20020a62f24a000000b006c69851c7c9sm6353699pfl.181.2023.11.20.11.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 11:05:34 -0800 (PST) From: "Ritesh Harjani (IBM)" To: linux-ext4@vger.kernel.org Cc: Jan Kara , linux-fsdevel@vger.kernel.org, "Ritesh Harjani (IBM)" Subject: [RFC 3/3] ext2: Enable large folio support Date: Tue, 21 Nov 2023 00:35:21 +0530 Message-ID: <3dd8b8bce2c29d5e87bbdc9e37fa11ba80f184b9.1700506526.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Now that ext2 regular file buffered-io path is converted to use iomap, we can also enable large folio support for ext2. Signed-off-by: Ritesh Harjani (IBM) --- fs/ext2/inode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index b6224d94a7dd..ad04da5ed6bd 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -1425,10 +1425,12 @@ void ext2_set_file_ops(struct inode *inode) { inode->i_op = &ext2_file_inode_operations; inode->i_fop = &ext2_file_operations; - if (IS_DAX(inode)) + if (IS_DAX(inode)) { inode->i_mapping->a_ops = &ext2_dax_aops; - else + } else { inode->i_mapping->a_ops = &ext2_file_aops; + mapping_set_large_folios(inode->i_mapping); + } } struct inode *ext2_iget (struct super_block *sb, unsigned long ino) -- 2.41.0