From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62C82EED60E for ; Thu, 12 Sep 2024 14:46:11 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sol5F-0005mK-Hk; Thu, 12 Sep 2024 14:46:10 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sol5D-0005mC-Oy for linux-f2fs-devel@lists.sourceforge.net; Thu, 12 Sep 2024 14:46:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; 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:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=h/FhE1B8Rka4/N5q5phfNBhV9i5PI+Rqk0TZbmCKbE4=; b=MoUAUYypmec3ZGrFimuP1Qc9bz icGO2f9nyq1NNQ955GwSlxlYb1Hoh99UzL2mxWvT0BVoZh21YPyHezEJEXpae4w30mkFZZ4hyTYt0 E0diL5gxvXWTdyBF6CjA+YypGIw/cSbXhxPHwG2tPMcMRIKEbY2vqHzVxxlIbknOyE+8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; 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:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=h/FhE1B8Rka4/N5q5phfNBhV9i5PI+Rqk0TZbmCKbE4=; b=CSGz6bWGSifGI+K0anFaOhdljB uEOkWsB48sh7GUuhEm2N/PHO23s6KhYc16a5DCGgpKiqfwUI3/pRIWbRGfmSkF3KAjILfAiBHFQwk fBYdx4Ydo9rpdTlH46cP91p0ciS0BwU2g5wRei4WoSEx+Kq2AC19tMukBJaIyZxHojSM=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sol59-0004JN-U9 for linux-f2fs-devel@lists.sourceforge.net; Thu, 12 Sep 2024 14:46:08 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F0FC15C574C; Thu, 12 Sep 2024 14:45:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1312AC4CEC3; Thu, 12 Sep 2024 14:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726152358; bh=hrauWppsc6XR803UtC8++6+LnYlEts6MH5xg+4q+wJg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BC/K4OjI32iuDv9vIgIEUHBAEPJq2E8mIRnVf+7h0cSFOb0hc4CNdbeGd8DpGl97v 3jUXK7sm4Nq7wYqPLm1b6h2ijZBSHBtslByMfKY2YpfSSG9dZ0gSYKjQtPpDjS2It1 llJaZn8zhayFhRvgGzfCdylwVXvDi1D7dBbyIX9hX92QBm52rU5crXsODDppN59ALA oRXTmxlUAt2iBLmF/PcfZMNpUGGVm8iTcULgjSHfXov3SLGPWk/A0NC7e5Qa68O2/o n3jBUhy0UJTYoF1IpzAJ9HeWwtTbBWe4E39NG6DdJY7IDUN0GXuefe6EuZ4NYLh6N1 cJHZfLe4dHk0w== Date: Thu, 12 Sep 2024 14:45:56 +0000 To: Daeho Jeong Message-ID: References: <20240911213031.183299-1-daeho43@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240911213031.183299-1-daeho43@gmail.com> X-Headers-End: 1sol59-0004JN-U9 Subject: Re: [f2fs-dev] [PATCH] f2fs: forcibly migrate to secure space for zoned device file pinning X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jaegeuk Kim via Linux-f2fs-devel Reply-To: Jaegeuk Kim Cc: Daeho Jeong , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 09/11, Daeho Jeong wrote: > From: Daeho Jeong > > We need to migrate data blocks even though it is full to secure space > for zoned device file pinning. > > Signed-off-by: Daeho Jeong > Fixes: 9703d69d9d15 ("f2fs: support file pinning for zoned devices") > --- > fs/f2fs/gc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c > index 724bbcb447d3..aaae13493a70 100644 > --- a/fs/f2fs/gc.c > +++ b/fs/f2fs/gc.c > @@ -2010,8 +2010,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi, > .iroot = RADIX_TREE_INIT(gc_list.iroot, GFP_NOFS), > }; > > - do_garbage_collect(sbi, segno, &gc_list, FG_GC, > - dry_run_sections == 0); > + do_garbage_collect(sbi, segno, &gc_list, FG_GC, true); Do you mean this, right? do_garbage_collect(sbi, segno, &gc_list, FG_GC, true, false); > put_gc_inode(&gc_list); > > if (!dry_run && get_valid_blocks(sbi, segno, true)) > -- > 2.46.0.598.g6f2099f65c-goog > _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel From mboxrd@z Thu Jan 1 00:00:00 1970 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 B7D221BD012 for ; Thu, 12 Sep 2024 14:45:58 +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=1726152358; cv=none; b=oJmneYVfQHoAx3mysUwengTb677xBf0HjwMOubghjXwbQ3jZosWTWvKihVt4fS9JhxcQA3eUL46dgpYGm5xHvByhqotgEfHdILJzDsx49A0mXZq3oxQPDIRCSdTMyRwMrG8upxRPPBza7G+CSoTiqei/fOIt3de4loGIRFah0RI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726152358; c=relaxed/simple; bh=hrauWppsc6XR803UtC8++6+LnYlEts6MH5xg+4q+wJg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JehZz954O4Ncbn2myAD/hC+mfYHGSWZ31FSq+aOTsNpwvNVymwxUDZFrzjZwKVcV8zbitK0bJghnvvulPnYw7VvpV5yk5M9s5P19t/P0fI5V9UcguGFpTLvoPUm8SdTDUoVyO21gTFXfLe6/2qMDhVEWYCz735tKcb0fADWkfyI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BC/K4OjI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BC/K4OjI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1312AC4CEC3; Thu, 12 Sep 2024 14:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726152358; bh=hrauWppsc6XR803UtC8++6+LnYlEts6MH5xg+4q+wJg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BC/K4OjI32iuDv9vIgIEUHBAEPJq2E8mIRnVf+7h0cSFOb0hc4CNdbeGd8DpGl97v 3jUXK7sm4Nq7wYqPLm1b6h2ijZBSHBtslByMfKY2YpfSSG9dZ0gSYKjQtPpDjS2It1 llJaZn8zhayFhRvgGzfCdylwVXvDi1D7dBbyIX9hX92QBm52rU5crXsODDppN59ALA oRXTmxlUAt2iBLmF/PcfZMNpUGGVm8iTcULgjSHfXov3SLGPWk/A0NC7e5Qa68O2/o n3jBUhy0UJTYoF1IpzAJ9HeWwtTbBWe4E39NG6DdJY7IDUN0GXuefe6EuZ4NYLh6N1 cJHZfLe4dHk0w== Date: Thu, 12 Sep 2024 14:45:56 +0000 From: Jaegeuk Kim To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Subject: Re: [PATCH] f2fs: forcibly migrate to secure space for zoned device file pinning Message-ID: References: <20240911213031.183299-1-daeho43@gmail.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: <20240911213031.183299-1-daeho43@gmail.com> On 09/11, Daeho Jeong wrote: > From: Daeho Jeong > > We need to migrate data blocks even though it is full to secure space > for zoned device file pinning. > > Signed-off-by: Daeho Jeong > Fixes: 9703d69d9d15 ("f2fs: support file pinning for zoned devices") > --- > fs/f2fs/gc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c > index 724bbcb447d3..aaae13493a70 100644 > --- a/fs/f2fs/gc.c > +++ b/fs/f2fs/gc.c > @@ -2010,8 +2010,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi, > .iroot = RADIX_TREE_INIT(gc_list.iroot, GFP_NOFS), > }; > > - do_garbage_collect(sbi, segno, &gc_list, FG_GC, > - dry_run_sections == 0); > + do_garbage_collect(sbi, segno, &gc_list, FG_GC, true); Do you mean this, right? do_garbage_collect(sbi, segno, &gc_list, FG_GC, true, false); > put_gc_inode(&gc_list); > > if (!dry_run && get_valid_blocks(sbi, segno, true)) > -- > 2.46.0.598.g6f2099f65c-goog >