From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8518B25A642 for ; Wed, 5 Aug 2026 01:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785892817; cv=none; b=n8gumYPCNPbgEQrSC1GnbjQ3A23RRXMJMYMlLVoO0DwgAwbkT3xUm2aLWqU5fdshnRh50j3puuE3AlHYXeC/iU2Y2aaKYO5bHIcfA8fF3nTJaziK2rYxmgIsDrMVHFq5O4JTJZsgEMVcvI8Sz/CQNtip3necoZOMCAjBuqd8oog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785892817; c=relaxed/simple; bh=nuBRDPlOd9JjCkm1kYOKFdD0yTiSbwPaaYQmDjpCU4I=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=Wx4fwSpwv4XLiBMIr7EU69Hd6cspvo/XOd5+++R3REjcAsJaeS+PqXQEMESjO48OnLkit4aYi4WVx+jaQlwf4+wDTVwkXcRhD6tr73g6wW0hop4utCccA3WyOz3DUOTeGTeDIH0ChgQ+v7c3CDaXIbaJ7gUoGhGyj6PNFpi2XUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jGmsDcKo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jGmsDcKo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCEE61F000E9; Wed, 5 Aug 2026 01:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785892815; bh=LPLi41NYUxsS1gkBzemRFdLPQS6JHH/k3xndcb8xmGU=; h=Date:Cc:Subject:To:References:From:In-Reply-To; b=jGmsDcKo/s39+SOjtTpJ0P5uOQWF6nLg4j14TjN/y2ilBcYEm3j53fOJJR7hwIAJR xbzkEaHO8A3daET9aoC4vteXiqmVcAz8b10vZcGeQLMMojVcVP04meMUIi4MRykNoU L3GK3blTNoUmqvo6wGuOG4dY7lGOlsZj0tj7R8EeWB6jt+P2RBt6V60H1qHHDoXrhU FXTDmW6a18rOHagmeDAmikZvF9hIafoSYF12lHuRCSjyorO2cDrTx6q+WS5Bko0Sfb DedNNhlfj8JXtB10MsJ9A0whQbVCgDhv/XlT8kAG3x9MYEf8ZCkM53lQUo4KQiVxFT f2l40GZQ9V4Ig== Message-ID: <8b643643-17d5-4c80-9548-c8dc461c9d2d@kernel.org> Date: Wed, 5 Aug 2026 09:20:13 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: chao@kernel.org, Daeho Jeong Subject: Re: [f2fs-dev] [PATCH v6] f2fs: support dynamic reserve/release for device aliasing To: Daeho Jeong , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com References: <20260730154618.2166947-1-daeho43@gmail.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20260730154618.2166947-1-daeho43@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/30/26 23:46, Daeho Jeong wrote: > From: Daeho Jeong > > This patch adds a dynamic management feature to the existing device > aliasing functionality. It allows users to dynamically reserve or > release specific devices from the filesystem's free pool at runtime > through new ioctls. > > To support this, three new ioctls are introduced: > - F2FS_IOC_RESERVE_DEV_ALIAS: This reclaims the space occupied by a > device aliasing file. It first performs a capacity check, resets GC > victim information for the target range, marks the segments as in-use > to prevent new allocations, and then triggers GC to migrate existing > valid data out of the range. Finally, it reserves these blocks in the > SIT to effectively exclude the device from the usable capacity. > > - F2FS_IOC_RELEASE_DEV_ALIAS: This releases the reserved space of a > previously reserved device aliasing file. It truncates the blocks > associated with the file, which makes them available for general > filesystem allocation again. > > - F2FS_IOC_GET_DEV_ALIAS_STATUS: This retrieves the current aliasing > status of a device aliasing file, returning whether the file is > released (inactive alias) or reserved (active alias, with blocks > fully allocated on the device). > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,