From patchwork Wed Sep 11 21:30:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daeho Jeong X-Patchwork-Id: 13801119 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 12DB2EE57DB for ; Wed, 11 Sep 2024 21:30:51 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1soUvJ-0000dD-G0; Wed, 11 Sep 2024 21:30:48 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1soUvI-0000d4-Fo for linux-f2fs-devel@lists.sourceforge.net; Wed, 11 Sep 2024 21:30:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ND0dFv6nG4nnD2cgNnxmWojj7h/h+D3ul3lYx8AfWwY=; b=k4dhuI+h17uSYQBO+amSavNSV9 wFikrY+TlNYb3kkGZQu0uD32v66GrCRPTjNgC2R5qzlgGamQvZWfC+mo/ElWRTMnfpcPMAcEDxbBz t4fyQZ5p93K8Yot233tzQJ0YLtawWMcg51aZHF3emd3N27fz7sPn3mDxpAm2SpRNZ/Vg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=ND0dFv6nG4nnD2cgNnxmWojj7h/h+D3ul3lYx8AfWwY=; b=A l6FZ93OUAfFgecZ2ZVla4o/f+x4K6DqQ9PZ57MamEVHUgY+yJlveXE0/iASlud9ZUADMKO09t+dmE q3VOhWQmlQ87APq/05xz/VtX9i27G7A4jgMarGnqXZkETwuRF6yClLvxyTnSQZLtkARX1Wof0K8h5 6DOfgTzbxiBcm/d4=; Received: from mail-pl1-f170.google.com ([209.85.214.170]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1soUvH-0002LL-AI for linux-f2fs-devel@lists.sourceforge.net; Wed, 11 Sep 2024 21:30:47 +0000 Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2053f6b8201so2796715ad.2 for ; Wed, 11 Sep 2024 14:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726090237; x=1726695037; darn=lists.sourceforge.net; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ND0dFv6nG4nnD2cgNnxmWojj7h/h+D3ul3lYx8AfWwY=; b=VLaqBkVdPzASwLusfTLO7+jxlQlueasW2s9dkbr8EBX3VOq8xw1HxkAyqiIMEklpAz TM9nUoabM93oSUg/98n/EbLm+FwB3lDaygo/SMz5mAtTTszRVkKT2oofBoMtMwEMIb5t 1lsQyLzNE44vXdgUpGqrBNoqstDk1t346ITrYYtDj/HFycdjazNYA5EFYfDPaeLl/hGM UMcVWGYzW6XD3g3PSWVC93WKSR0y3uW+t8yhp6j3ZrellJ080KvJxjNXC6e0AA6mAyuS vXJYJ/vBI1Z41vk76Z6qy12UYdGxZAUy28WNX+JZw5oyy5x4qUgbrzbr5BBIldO92QEA F+sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726090237; x=1726695037; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ND0dFv6nG4nnD2cgNnxmWojj7h/h+D3ul3lYx8AfWwY=; b=fDdcZAAoFUsPCNLVaFGpW8D5ChK4cvv1MRaTqwUYU6993NnkYg/997uSXtGcTLhnIb ax9AAf4K3788KfQrQhk0AoSDJIylM6kbHcmAmDxwDJXBN1HT0vKfJaZ9tv5rcMcIWsLw 5b6fBf7kg43RIJDY3/xk5zYpwjKdrNzM1qF4VE3UiY9QE3K3nxtptiaeD2eq15P1ioEl hTDODOyftfoiFkbVFYm0DvVmjlFMTjWuzN1NJAmpYPJH9nH1AquYHZU/WT8sBvkuE5eP 6nqrAdeCcWA0cd7Hl4caJjoRkMClkuAUSwuJ1kZ7/YTaMU3BPNCxCPJqkAUEF+byXE2P arbg== X-Forwarded-Encrypted: i=1; AJvYcCXNkw+6gDWPSbz2fmWaEVD5ze9EAqFB7dSu6bkTd+kpfI+pQE9vhFBP1Iv89cckV8luQKUNGNo79pYO1NTlT7Tf@lists.sourceforge.net X-Gm-Message-State: AOJu0YzbzGk//75WBjHVsUKDAOYGBjIEEdn/W++xJRjfsDRIFXEEMmCn Ms/gyFo3425gTL/5X3TkIY3gP0f8g7kZ6cbvcwz35Y8gSne6j6Lk X-Google-Smtp-Source: AGHT+IHtRaKXBZUOkwmoSTSvPlA7hYaDv9260Cea35CnvQUz6sWM0eYC/6jYR4nm2iFUJx/7qLb/XQ== X-Received: by 2002:a17:902:ec83:b0:206:cc5b:ad0c with SMTP id d9443c01a7336-2076e371523mr9444105ad.28.1726090236284; Wed, 11 Sep 2024 14:30:36 -0700 (PDT) Received: from daehojeong-desktop.mtv.corp.google.com ([2a00:79e0:2e14:7:8f19:757b:ead8:14be]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2076afe9da3sm3663715ad.239.2024.09.11.14.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 14:30:35 -0700 (PDT) From: Daeho Jeong To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Date: Wed, 11 Sep 2024 14:30:31 -0700 Message-ID: <20240911213031.183299-1-daeho43@gmail.com> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog MIME-Version: 1.0 X-Headers-End: 1soUvH-0002LL-AI Subject: [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: , Cc: Daeho Jeong Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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); put_gc_inode(&gc_list); if (!dry_run && get_valid_blocks(sbi, segno, true))