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 90588F46C4D for ; Mon, 6 Apr 2026 15:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To:Sender: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=mQodJrrClytT76pgQRoKDrDxGqmKLJiHzNX7SvcX9/I=; b=BIkE5DSEtG/sTRz/jeLenF0OWU ehJf0Jvp4Ke1O3Zwih1Kk9B8FMLqwjPUeK5z0lCjoBJm1BytG65PPM9JR1Ghb5+3tTASfxOigoRbt w/uIvYfQ+oF+nNz56xQsSEMqgNzHtYLGCBYy5NGHYvEJguEpFtON1Zz4kH0uql/8I5UE=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1w9mD6-0001DR-EK; Mon, 06 Apr 2026 15:49:56 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1w9mD4-0001DL-7r for linux-f2fs-devel@lists.sourceforge.net; Mon, 06 Apr 2026 15:49:54 +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=QV89BbslFpUmgIv69CuvUMZlo/wPieXo3pLIO1o0cDE=; b=HbT9bPm41B/v7Q73iuyXe5RNfn Ke2n+EnF4zDR4FK3UNi3L9IYGBlB2EjyM0STRDXgPpDtbwrljcX+2xoosaXtWuJ2sM/Yq/BlH0Ty9 lg4BwP/IUZHqF05e2gGZZI9lbsaYmO/AHk41m2h+qlScrN57bHga1X/o2EzIfSVUNgck=; 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=QV89BbslFpUmgIv69CuvUMZlo/wPieXo3pLIO1o0cDE=; b=C S48fIx0Qn8QO8uROgqkIoGr4a2MSccIpxlEqRmnF9uu2ENpafs6GBcqeGGTU3FQpJ7bKwwqkQfmMJ x8Xbh9XWiURrxJkykTPbeYfG1zroRfHLgjALUrPFmqzYfTZ8QPp1bBL5nUWpOEJclyk9WUEkjXFma j4KYUeaFT1vv3JSA=; Received: from tor.source.kernel.org ([172.105.4.254]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1w9mD3-0003AO-Rw for linux-f2fs-devel@lists.sourceforge.net; Mon, 06 Apr 2026 15:49:54 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 2C8F660123 for ; Mon, 6 Apr 2026 15:49:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8004C4CEF7; Mon, 6 Apr 2026 15:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775490582; bh=qGt/vVcrgk84aALtqO6DAf08kjxmhcsnqAaTnBsUDhI=; h=From:To:Cc:Subject:Date:From; b=Im45Uknv6jlzmzwjVupqtJ34PESXxdpa8Vkk/Y6IjOIddZZY7c4/l47VSm7Oy3JOb GZwTs25e848lHxGGrf29m1vNgO9ZaHcLcZaWPxmjLl119fNHQRm5hTR0uOtbzZSDIF hAxM20GhUPAV/LZ3LGIoNrtLNhOe6IU+AcN4E+1wNIr2Dcgjyv+OQqY1dBLLHusQud 3nJ0r91n8gTttpSbEKIwhZOVvrRtL6dP0t5FX01ipLYzf/07t6qbG3gOs9vsxBIB48 OHHOuxR9MTYcUotzZFH4mmN22f3TdVeTkwf95ZCDbR/+a+AzBeWmI11RTDEABQmKCA PKRwxKqm0Tykg== To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Date: Mon, 6 Apr 2026 15:49:40 +0000 Message-ID: <20260406154940.2407853-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.53.0.1213.gd9a14994de-goog MIME-Version: 1.0 X-Headers-End: 1w9mD3-0003AO-Rw Subject: [f2fs-dev] [PATCH] f2fs: do not support mmap write for large folio 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: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Let's check mmmap writes onto the large folio. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 2c4880f24b54..edfc3a374c40 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -82,7 +82,7 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) int err = 0; vm_fault_t ret; - if (unlikely(IS_IMMUTABLE(inode))) + if (mapping_large_folio_support(inode->i_mapping)) return VM_FAULT_SIGBUS; if (is_inode_flag_set(inode, FI_COMPRESS_RELEASED)) { -- 2.53.0.1213.gd9a14994de-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel