Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp245736rdb; Thu, 25 Jan 2024 14:05:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3fVc1oWUnBPEJBLS/YEbINX8mKAMXZasWh+eT8u3K6NUtNz2CSBzYOFR+w/f/ZzFY+UuN X-Received: by 2002:ac8:7f0a:0:b0:42a:51df:520b with SMTP id f10-20020ac87f0a000000b0042a51df520bmr442802qtk.5.1706220308396; Thu, 25 Jan 2024 14:05:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706220308; cv=pass; d=google.com; s=arc-20160816; b=Zozld31Xl1sTTaz2mjayF+5e+5GJxI2eygy9ZonptIzZlNHGlAEUe+SFWoIU8F7fq9 IMYyrQe0DVQY/q4IFsVMY+tTIyT3d2BGw/HIkG3jtwl2jHZb3oCY3Yj/tg6QbSeKlu5p zoh7eg31WLPhRbY4C2AQ8bdJUAb7aNrcFQRy0mT6JKMECH0qABvX9BHdPhfdKN/sRUAC eWvHufVId9B5z6qpOnduAXU0GGM3WPuXkEBb5Tl/K7jjsR85SdhBSpLRsxPpOsOlQ6NO 3CNcbfXbPfNkkoE3JN0fBOuTHERjbXAZxyGaerMWNbVdBRm4lqJtJQa84pfaWYhEzvtt fC2w== 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=BBqOb/ZqrKdawgvhDpAKr22AD6q4pmmVnTFBoWIGiU8=; fh=8nN87ltzWBepaJ3TMITRE3P4QEOA/1+qYXHBI0PKzEk=; b=uiHdI/y1HsIEcuMdJMUELmjMUbn4BnobuMytbpKI0V9FKxl4ezU+cfwa3FEtah/Jxt 50LicTrst7Zky4pVI79SI3AfSmQghKyWIZh/eTbyO1F9edDmuYIH/4aIBgWezi29ymvI 0mIMynlshA7FYL1185Fj2nUR/Y/ulEOYTuLG9N6oigqxfOQd9DWTKCIqJujMJGkqa5T0 2dc0NDwbKiJAReDcxzXE63MGGoz8l6I+2lV/hIsOEHgsu6ym/rDijyPH6KT4DVffEHI4 pVApt6M1DnWBWDyP1e/+vs4zzcY5HUdcmFmXFZE8I5cvsd23i1MsFvrVZHkqlp5p6K+Y R0jA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=N6o2AsrF; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-39264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39264-linux.lists.archive=gmail.com@vger.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 a14-20020ac85b8e000000b0042a6409d610si3822234qta.158.2024.01.25.14.05.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 14:05:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39264-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=@infradead.org header.s=casper.20170209 header.b=N6o2AsrF; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-39264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39264-linux.lists.archive=gmail.com@vger.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 907211C241E5 for ; Thu, 25 Jan 2024 20:48:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9B6F1386BB; Thu, 25 Jan 2024 20:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="N6o2AsrF" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 077A9135416; Thu, 25 Jan 2024 20:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706215671; cv=none; b=QG9zigUpoRqey5O04H5sLHa7BoPZFMuZxcaJ31cRcGDts5GwZcwXfuzyd/7A19tOjFe0D1aWjcPsNBJNzdFF5yimqhRUg2L6L0jbNvUMeI87Jv3kRix1SHmKPmodd0CQrz9jy0tBHfTWVm58IGGuJHwhjdVfrn4hOTBh40TUXWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706215671; c=relaxed/simple; bh=56c8o/PnnsFZL82o5Qr1kNlTvUosM/c1XaHFOGIRpPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=smQO3FD5vW83sjpvDUJmAwI7oJPCsx6Ul120n7sSriXqVOy7ejPqeENZW51A99PuAoQx65YWIDD+ojNwE4VKLBgF1qGhwxNdMbaOhhyAz5FL9s477CFHYK2ydaoJNjgiE3UF0WIEiZ5lmI5hLwOC9DtbjfUdIZnUU0Hz96oJDEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=N6o2AsrF; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BBqOb/ZqrKdawgvhDpAKr22AD6q4pmmVnTFBoWIGiU8=; b=N6o2AsrFBnAxGhkLunHLObyk6I e4zIFiWfoXqIX1uGE4X5PvacBk28dmC5837lBiaHc/0AwORUO7ROgg+Nl8jhP+maRD+1utRm1Bh87 oEL1gHoCpSocSeYW41GJz3OCLXYq1nTa7wVQqyohz3CxubRixhcW07tzQGKL/q3eQ+HANlwcc+W3Q Im+GTbC7oygnNpQRb7DI/08r6ASMkp1NGYRXZUA6iBam2ELid26Sve4ryqWxQBBMSdKIbjI+VGP0t Bdt8FM3sEOJrJdcoFkIeGXjiHxvruvxzYaK90OD1m4gPm/RJuL6zdClJzEDiEWxpRaVf/KfMY3YtY qnxp6K/g==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT6dP-0000000B791-1vmr; Thu, 25 Jan 2024 20:47:39 +0000 Date: Thu, 25 Jan 2024 20:47:39 +0000 From: Matthew Wilcox To: Luis Chamberlain Cc: Pankaj Raghav , Jaegeuk Kim , Yangtao Li , chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, fengnanchang@gmail.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, vishal.moola@gmail.com, Javier =?iso-8859-1?Q?Gonz=E1lez?= , Adam Manzanares Subject: Re: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs Message-ID: References: <20221130124804.79845-1-frank.li@vivo.com> Precedence: bulk X-Mailing-List: linux-kernel@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: On Wed, Dec 07, 2022 at 12:51:13PM -0800, Luis Chamberlain wrote: > On Wed, Nov 30, 2022 at 03:18:41PM +0000, Matthew Wilcox wrote: > > From a filesystem point of view, you need to ensure that you handle folios > > larger than PAGE_SIZE correctly. The easiest way is to spread the use > > of folios throughout the filesystem. For example, today the first thing > > we do in f2fs_read_data_folio() is convert the folio back into a page. > > That works because f2fs hasn't told the kernel that it supports large > > folios, so the VFS won't create large folios for it. > > > > It's a lot of subtle things. Here's an obvious one: > > zero_user_segment(page, 0, PAGE_SIZE); > > There's a folio equivalent that will zero an entire folio. > > > > But then there is code which assumes the number of blocks per page (maybe > > not in f2fs?) and so on. Every filesystem will have its own challenges. > > > > One way to approach this is to just enable large folios (see commit > > 6795801366da or 8549a26308f9) and see what breaks when you run xfstests > > over it. Probably quite a lot! > > Me and Pankaj are very interested in helping on this front. And so we'll > start to organize and talk every week about this to see what is missing. > First order of business however will be testing so we'll have to > establish a public baseline to ensure we don't regress. For this we intend > on using kdevops so that'll be done first. > > If folks have patches they want to test in consideration for folio / > iomap enhancements feel free to Cc us :) > > After we establish a baseline we can move forward with taking on tasks > which will help with this conversion. So ... it's been a year. How is this project coming along? There weren't a lot of commits to f2fs in 2023 that were folio related.