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 88901F99C70 for ; Sat, 18 Apr 2026 01:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Type:Content-Transfer-Encoding:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:In-Reply-To:References:To:MIME-Version:Date: Message-ID:Sender:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zqX8AWECNYx30C+excHYepKqfrLP6U/NMQPfV/GHGFY=; b=SjWndbevUlpri2w+nkYN7YbTi0 1PCxIqgBxeYRVzp0PwUraLKs5OemcNVuzXluKv3Z8xpDpg/mtQWoPwBVLiz7YYSXnEa375PqL0Qpt fs0XMaFFxAQ7eV+qmXIsE40g9oTUqyarQ/tiZ93gAOfZpoFOowU2zWwRxQW0BKttwoYo=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1wDuDn-00054u-8q; Sat, 18 Apr 2026 01:11:44 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wDuDl-00054f-98 for linux-f2fs-devel@lists.sourceforge.net; Sat, 18 Apr 2026 01:11:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:To:Subject:Cc:MIME-Version:Date:Message-ID:Sender:Reply-To: 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=ve73Vp/5lkh8fc1KpsVy8xKyWQr1Qnoq3EEd6VeXpU4=; b=VHABc1bXAuroB93LN6N9SQzFYu 6qMtyloddDtbMMlqof7Zp4s+/CVh7cBh+T0UvTLU0bxuFNlXRfgHFd+06jDXa2/j+/Wu6BFqSxut5 W4Nd2VzAdiYhU4oBsDkLq5mowscFJRXOOV7cMr/F+ZCpmM3aUXBddmGQpN+ZUQRMgZEQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To: Subject:Cc:MIME-Version:Date:Message-ID:Sender:Reply-To: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=ve73Vp/5lkh8fc1KpsVy8xKyWQr1Qnoq3EEd6VeXpU4=; b=S6MEjmp/U6etBVPdhy7zVCVCEk PZo6F/YCXVbtmN7+b6ONU3gdOulPeYhz9Z4Su65zNY7ljYero9Mz+E1hP2mx06/TKg/w4viseztYw 44boISmWYa1OzQUEZmry5GPswF39wNhLKBFjVINutqxIhirUgCZH2YsGMikKmioaOXfE=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1wDuDl-0004rb-Mb for linux-f2fs-devel@lists.sourceforge.net; Sat, 18 Apr 2026 01:11:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 558F840561; Sat, 18 Apr 2026 01:11:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E3C9C19425; Sat, 18 Apr 2026 01:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776474691; bh=xtf3vTf3zLGn0bILHEOozeTiSY3t0wOv4YnFQqyE4Dk=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=iay4PWySfnfz1NnT6IMCkSaoeThC1GwrsgYABhEiUGyxKSASfA+PXjrKlMbFYO6FO 7FhUqJeHBJdh04je2/wPocw4pOYLtnAQlkpJ+rVidfuXDKV5pb34ke3EQZBTKcfcxt aV75FvnnbopL/HP3DRpF1L3SVQKCEZe0zUvMbDKg0OQC0IB8eUjTExpodPwsBAdQHu Ye1O5IMs/hRrbsg8xFsPylxSnDA0Nwkzh376ON3+5tr6CU5nIAsodFUTcfgnc+awru HuI+Ua0TVITltwWLty3blu+g/qk+3UEXNQ0o2TY+iAeOyemd7q9eN4uwCWi0oquNP+ TEELTW40C81Jg== Message-ID: <7c6f4134-b01c-4ec6-a036-d92c5336839c@kernel.org> Date: Sat, 18 Apr 2026 09:11:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20260409134538.3692605-1-jaegeuk@kernel.org> Content-Language: en-US In-Reply-To: X-Headers-End: 1wDuDl-0004rb-Mb Subject: Re: [f2fs-dev] [PATCH v2] f2fs: another way to set large folio by remembering inode number 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: Chao Yu via Linux-f2fs-devel Reply-To: Chao Yu Cc: Akilesh Kailash Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 4/10/2026 9:16 AM, Jaegeuk Kim via Linux-f2fs-devel wrote: > enum { > F2FS_XATTR_FADV_LARGEFOLIO, > }; > > unsigned int value = BIT(F2FS_XATTR_FADV_LARGEFOLIO); > > 1. setxattr(file, "user.fadvise", &value, sizeof(unsigned int), 0) > -> register the inode number for large folio > 2. chmod(0400, file) > -> make Read-Only > 3. fsync() && close() && open(READ) > -> f2fs_iget() with large folio > 4. open(WRITE), mkwrite on mmap, chmod(WRITE) > -> return error > 5. close() and open() > -> goto #3 > 6. unlink > -> deregister the inode number > > Suggested-by: Akilesh Kailash > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel