From patchwork Thu Feb 22 12:18:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Yu X-Patchwork-Id: 204736 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp211310dyb; Thu, 22 Feb 2024 04:19:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTb6glIhbQUh82SKUnvv4bZwSYzGEmI9QAf76xpPn7ciHknp7HsauYX0b2vycZ1/q9AoJVnYv4AKucBVCjuXEXJsGJZA== X-Google-Smtp-Source: AGHT+IHbqy/0qF8xB29en6K/zpni1w2KOF89+VxCf004T5mqegM8KE96JWATzjWX2EgY8VOefSgl X-Received: by 2002:aa7:d60f:0:b0:565:4bce:db2 with SMTP id c15-20020aa7d60f000000b005654bce0db2mr383178edr.40.1708604354948; Thu, 22 Feb 2024 04:19:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708604354; cv=pass; d=google.com; s=arc-20160816; b=Ev5UX+pxrCju3FdvYkUQq2EnItrWLJHurWJ2XPAR9kWdYAx/MSflvLiHC77T5QDR+U ZOX63r961ODE43Lx6lb+byr9RvSGoFM0CIQwuP8fGda6e7NPZ6yJuBoCaY3K3weO24us GeKUTUKInxLkCrbU0OpFkoCK/6kNBxMTqlN5qtdL6zKNuHDnKY1Wer6QWefHg3TqYtbD JQnsK4tSiZ7Su4MKMnj/Yow1VaSI2vJTB7QR9Kz5cy2QYU3wzym5Rs5VhmkMiPDJIWQY xRI7rcC62coNtm+CTegGKdxPBJb92XeOhr0825o/q9XKqTH4l0SqPmsIf1s2jWVo7t+t VmHA== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=RybAO6UjF9rQEJ8FIGv7KnXw6IFw6ds7eywLmrx2Vw0=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=zwUPcOc2jXXWOu0mp/yPV9KxxoskQC0QjjgAYqgwqzh57WL6RTOMES5VguXfgqgCuA M4Qs+p6iCzs4j3S2xhkc9yoeeNHylpcAxJ6BBbEchpGga918WCPmaBMfm1cntvyPMd0d +toz3rYtVDR3uBewqnczffAPZ+IDN43uQ7bvELKI+cgLUnBtI1PEaYIZgjvCLsW3C4J4 cw0wCQp0nqi4cgA8xa3AuTKZ2Budd8cvre4rFnoTTKOH/fc8KrhiMY17/TsUBkqOGq1k SnL0NNVP01Xj/Jn5HVruAD9i3bErIXzIU5l9OavJGVu8GurKdSiwBbH3rjZJkxEs7lok SfWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bT18rqCL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76495-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76495-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x19-20020a05640226d300b0056447ebd7afsi4548713edd.1.2024.02.22.04.19.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 04:19:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76495-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bT18rqCL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76495-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76495-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8FCB91F241CE for ; Thu, 22 Feb 2024 12:19:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B338A60DCC; Thu, 22 Feb 2024 12:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bT18rqCL" 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 DD6345FBA2 for ; Thu, 22 Feb 2024 12:18:57 +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=1708604338; cv=none; b=CxHBmeRcM4Sf/PkDCtm0w6uTYlsnnrlj0wUdGE40uRxYzZNc6RKInU0k8aufNIL3jdixJtXXfyI2t3Jp5dnbjuF0Dl9SfdmN66SLozg55vUZ/QtJCB/eITGsoTzI6EThlYMAhbHtwjDJ1GtiuhU6AotOVz64D1lp7UHyKRxGN/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708604338; c=relaxed/simple; bh=hBevzcQ0912uhBWtG4E7Up+PFldcF2IwczOHh20Evtc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qP/FIZv3VojAM3heMePkaCyWPc6bNFGmQWBVTJFYRH8T+sB7FrVlVsCByynuX65gQOXaARVZcooVSvqyENjugPXdMKvOAtG4Ne6bhMV7hU2FKGYDlk/djjsGaM3g7FOcWXBm3ClByW9F7IdQkXfZI1InCj/HpHpwPgWKCvSH8Ns= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bT18rqCL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FF62C433F1; Thu, 22 Feb 2024 12:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708604337; bh=hBevzcQ0912uhBWtG4E7Up+PFldcF2IwczOHh20Evtc=; h=From:To:Cc:Subject:Date:From; b=bT18rqCLQzC7YSmZJAXDveVoZqPTAt+O/d3Ye19a9zklautaxeoKEXQO7eWGIEKVj eN84vFJ8FaO43JUq90P4gF+oabMZlJujN2Q4njfa9qQbqJmalW5EAEjNzIZJOG1RLd u3epzZPURBhSezX3nA2z7UGiaGNmRoS5sLXp8aMzf1JkDJ4RO/ZbYGm0FsZnQddXl6 9/GiVQv1eAgOKAFqfX2nI1s++S8PGQMXSPEPAPbL3l17HnLYU99Lu/ZQYbtV1GrEPJ hgK9pUyPxvZJ8szMAoZPQAa6KdGSWXqOitm7anO/ztW5I9HeLvixbtlxTyJ4nJaU3N FkyaaBqAsMJ0g== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 1/4] f2fs: delete f2fs_get_new_segment() declaration Date: Thu, 22 Feb 2024 20:18:48 +0800 Message-Id: <20240222121851.883141-1-chao@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791601519883224118 X-GMAIL-MSGID: 1791601519883224118 Commit 093749e296e2 ("f2fs: support age threshold based garbage collection") added this declaration, but w/ definition, delete it. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 8a6fd4352a0e..fbbe9a0a4221 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -3701,8 +3701,6 @@ bool f2fs_segment_has_free_slot(struct f2fs_sb_info *sbi, int segno); void f2fs_init_inmem_curseg(struct f2fs_sb_info *sbi); void f2fs_save_inmem_curseg(struct f2fs_sb_info *sbi); void f2fs_restore_inmem_curseg(struct f2fs_sb_info *sbi); -void f2fs_get_new_segment(struct f2fs_sb_info *sbi, - unsigned int *newseg, bool new_sec, int dir); void f2fs_allocate_segment_for_resize(struct f2fs_sb_info *sbi, int type, unsigned int start, unsigned int end); int f2fs_allocate_new_section(struct f2fs_sb_info *sbi, int type, bool force);