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 X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 030FEC433ED for ; Mon, 10 May 2021 11:51:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B6CFC613C0; Mon, 10 May 2021 11:51:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6CFC613C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1lg4RI-00051R-7U; Mon, 10 May 2021 11:51:08 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg4RG-000517-R1 for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 May 2021 11:51:06 +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: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject: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=/CkgwvJ+1YN4a+lYLMrcrSI0PubyK10MuPv0gjiwIH8=; b=EnpI+CUBcrBITnIzh6IpjuEuw5 pQ3/ZDULl1uG+17GcGtrEadXd9PBwFU4EXfmNOE/g9KHB1PZKEZwVjVxbuaG+qU0H0hCWVzFL6RdK R0YFTyHXv+5MiLz15R7wyum6ykmBqhJ6dm1bViY0IZZ8LauSVjeVmUyl6XoMmWLDIGic=; 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:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject: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=/CkgwvJ+1YN4a+lYLMrcrSI0PubyK10MuPv0gjiwIH8=; b=XSrTymJOyFVbnKawp+UHog+U/w YPRd+JS7KIMOEX5111iJlOo4Nc49TouHYorvl3qXuRXJC0LXFCSw5fM+820R1L3FIA1lBXTL9PycP Cu6Ccraq2HQNe1QSfdG3cJlzKK1Ksolfbg059M0RD3aUCIyOf9O4EXtWPJ8s4hiHC5TE=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1lg4RA-00050a-Bc for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 May 2021 11:51:06 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B7FD61628; Mon, 10 May 2021 11:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620647450; bh=24axoO7AJmJExXSUrvkd+ML2tdRF/FXgk5uq6T0eaTk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=m1JtWtTk4z8ZY7uwEXnQTAjp5xIseaq4Ez3Cn7sGFOPetCyujFsH0tfs8MFLhUO82 Yk3Sbx74T9jqDgdR+ON2FF2e+u8fF1GXADYq5H4kZbkQNskLAOAEFXhkVTbaIDlMco GkPYtod7C05TApQc0B+6cjIvY/yi5EC8Kwm6/A6fjsshOlg9otmrlmyciTaGLMy1Ij YtvygI9L6btI2f+FrSYIxuWW1+F/4wKiqF2pe7Ft+WwYZx/LJ0AGRAuiJktMRKW0Xw jemjzFoWRTqXX0Ku5n6trtrxDz8VMaHZD0QuD0icqNWtbIrj6x0GpyG/h8tK+XaYJ5 BzWHhjnnOcBeA== To: Shin'ichiro Kawasaki , Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net References: <20210510112444.902964-1-shinichiro.kawasaki@wdc.com> From: Chao Yu Message-ID: Date: Mon, 10 May 2021 19:50:46 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210510112444.902964-1-shinichiro.kawasaki@wdc.com> Content-Language: en-US X-Headers-End: 1lg4RA-00050a-Bc Subject: Re: [f2fs-dev] [PATCH v2] f2fs: Prevent swap file in LFS mode 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: Damien Le Moal Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 2021/5/10 19:24, Shin'ichiro Kawasaki wrote: > The kernel writes to swap files on f2fs directly without the assistance > of the filesystem. This direct write by kernel can be non-sequential > even when the f2fs is in LFS mode. Such non-sequential write conflicts > with the LFS semantics. Especially when f2fs is set up on zoned block > devices, the non-sequential write causes unaligned write command errors. > > To avoid the non-sequential writes to swap files, prevent swap file > activation when the filesystem is in LFS mode. > > Fixes: 4969c06a0d83 ("f2fs: support swap file w/ DIO") > Signed-off-by: Shin'ichiro Kawasaki > Cc: stable@vger.kernel.org # v5.10 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