Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp51753lqg; Fri, 26 Apr 2024 08:31:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzWM4rF5ZGpEaBZshQdMjoPHDBVG0Mxn4Y622AuCtxPlWhfzxe9rkbMMG8BNr9q0z8kNA/6QAQaxtVHUAywRqgMlNnR7VyXJNSNf/Jzg== X-Google-Smtp-Source: AGHT+IHRoRjpXTjBT57b8mkJ/e0UVz3woS9EmDr8Dg8mskpZJA0PiMiLaHsIYw7moIRNhFg4qx2B X-Received: by 2002:a05:6e02:1529:b0:36b:23d8:81f2 with SMTP id i9-20020a056e02152900b0036b23d881f2mr3305028ilu.31.1714145482429; Fri, 26 Apr 2024 08:31:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714145482; cv=pass; d=google.com; s=arc-20160816; b=DD+HkuKROfaiymX8UyJq094h3MuvZaBqd0asd3fKdldzTpkLXFF9TzkJ34i1ZEtCyz R9qmQRhh0yRpOC31+rW5toEceUy+zHgvWsKu8U8+ULdc4lddCBZcrxK2e/wMjdG9Vd7D Uc4yR7bBEXphaHr/4np7BwoDEfNS6BwF/EYhCwGVdm1FhGiCn+lX7M5ROr8wKGVS5LGN OQBKeW5acw+BoNHUf0xz+nnpUjr3Ck1FTPnqWJYEoQEcaIvMDD5BRZ/vlAz3fAmMg/3v CM/d1IROoDAwrjlfFnM9suY6c+BWXOwsyShle19Z3Y4dMkZn+qzFMgfe4GHbEIzG6/GH AMbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qCpkuwoU+SorY0JE0mOIkEYFg8hw4T0VPZFDtb/mHyg=; fh=o138+HZviO2tZaMfudOHrtCyfDYqtIk+5A19Y9Fjm+8=; b=lIPHAnTnsjpWPSnol4m7a3JNdMjLXG2JvyroaFjrvFZqS4FX7nHCAHqU9JxZRitZLZ JESPB18sY1+89e2erHsvYdp2p4ln6eX1mvk1eyPyy5C2rp0ZpPVF+Kuzr/uKdMYOUWev zLgGoiCc/o3alfLmb/REISfz/1r6Fv2AJ5iqNwdABXIv+xKutR7EAhFnwRVTYhkgJ1yc RoPXyreqdKJ5SdTBD222Z9RLGT1pATyJrU/AX8spBx7juUelZwV+zzNkcPO+O6w4nAKb QBYxiWudggZQpwrFLjEHtcpoQRJUWJmmY6FRhhXyDNwso7SQW890Tr6iGzXkRPM+dOFb x+hA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5rX3RXG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cz17-20020a056122449100b004d8957a5720si3769663vkb.259.2024.04.26.08.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 08:31:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5rX3RXG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 0A1C61C223CE for ; Fri, 26 Apr 2024 15:31:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73755156F37; Fri, 26 Apr 2024 15:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a5rX3RXG" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E797514A4EB; Fri, 26 Apr 2024 15:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714145419; cv=none; b=PYjh19MNFAt3Hpz7ldjjPffKja/qJSF81LGTVuglj0YOInxvVwLLArI6FtWDuwwcfk/9fe/1hDXV+9tZ7Jr8PzfRpl2ix+F4s0jlaQXcUfdWF8s9zckJBTfsm6ZdI7tSbNjm5hetfckRZl5hzleERCrOXVPZGkeRsV3C8FccFKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714145419; c=relaxed/simple; bh=WbG5PebwLa5slSDDeOjdZM1n/ZjV3i3QmndMDm5xsEg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XeNyLD6SHiWyutaweD27drYVyoGRpvFBfZf2+QtnhE4UT0OmFFOczB0ZPlYcQFpEBBFqVTXDVC505MT4SYdKDpYKN7X252yfk/IsxvbpazQnsmB0qSeWNnTctcgWE/Gy/vr2w30GRwpCltqROnfoIYbdOEvhb9DPnXlXTuKtCx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a5rX3RXG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A9DFC2BD10; Fri, 26 Apr 2024 15:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714145418; bh=WbG5PebwLa5slSDDeOjdZM1n/ZjV3i3QmndMDm5xsEg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a5rX3RXG54yW9CkikWmrTXIccH3B2BYpVqGlFqz+KDm0j/N3Iph6MoL5rjS9oqLSK db5pR911JvEVmkzXRgEvqE0Fg1cM5YML4/g9R8pU0fKDTYApasIdz+MkmtIxMc1Ndg 1JHVkSJ7L/XGcXR5J32kI9C1P00Lvj6D/0DmL53gEjflIjNokdZsBcNCFg5AcMeF6i BifFDaOa27PL1p2Qd2xfF+3RSb//Zzx1dpgm9CAOOoUPVACXJJs3sHx70b6Yuy6eo0 2p7Gmk90zwT0m9ztuzQPidQyymJci6HqzLyL/BIIBSgj3Yw1HSLIUxPVyeG+bnRJzP tekyHAdxJB+/A== Date: Fri, 26 Apr 2024 08:30:18 -0700 From: "Darrick J. Wong" To: "Ritesh Harjani (IBM)" Cc: linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Ojaswin Mujoo , Jan Kara Subject: Re: [RFCv3 3/7] ext2: Enable large folio support Message-ID: <20240426153018.GK360919@frogsfrogsfrogs> References: <581b2ed21a709093522f3747c06e8171c82f2d8c.1714046808.git.ritesh.list@gmail.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <581b2ed21a709093522f3747c06e8171c82f2d8c.1714046808.git.ritesh.list@gmail.com> On Thu, Apr 25, 2024 at 06:58:47PM +0530, Ritesh Harjani (IBM) wrote: > 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) This filesystem is looking more and more modern! Reviewed-by: Darrick J. Wong --D > --- > 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 f90d280025d9..2b62786130b5 100644 > --- a/fs/ext2/inode.c > +++ b/fs/ext2/inode.c > @@ -1424,10 +1424,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.44.0 > >