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=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 CFCB2C433E9 for ; Mon, 8 Mar 2021 11:54:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 75D55651A7 for ; Mon, 8 Mar 2021 11:54:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231539AbhCHLx3 (ORCPT ); Mon, 8 Mar 2021 06:53:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:45616 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbhCHLxL (ORCPT ); Mon, 8 Mar 2021 06:53:11 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B70C5AD21; Mon, 8 Mar 2021 11:53:10 +0000 (UTC) References: <20210308072510.GA902@xsang-OptiPlex-9020> User-agent: mu4e 1.4.15; emacs 27.1 From: Richard Palethorpe To: kernel test robot Cc: "huangjianan@oppo.com" , lkp@intel.com, Linux Memory Management List , Chao Yu , LKML , lkp@lists.01.org, Jaegeuk Kim , Guo Weichao , ltp@lists.linux.it Subject: Re: [LTP] [f2fs] 02eb84b96b: ltp.swapon03.fail Reply-To: rpalethorpe@suse.de In-reply-to: <20210308072510.GA902@xsang-OptiPlex-9020> Date: Mon, 08 Mar 2021 11:53:09 +0000 Message-ID: <87h7llhnfe.fsf@suse.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, > kern :err : [ 187.461914] F2FS-fs (sda1): Swapfile does not align to section > commit 02eb84b96bc1b382dd138bf60724edbefe77b025 > Author: huangjianan@oppo.com > Date: Mon Mar 1 12:58:44 2021 +0800 > f2fs: check if swapfile is section-alligned > If the swapfile isn't created by pin and fallocate, it can't be > guaranteed section-aligned, so it may be selected by f2fs gc. When > gc_pin_file_threshold is reached, the address of swapfile may change, > but won't be synchronized to swap_extent, so swap will write to wrong > address, which will cause data corruption. > Signed-off-by: Huang Jianan > Signed-off-by: Guo Weichao > Reviewed-by: Chao Yu > Signed-off-by: Jaegeuk Kim The test uses fallocate to preallocate the swap file and writes zeros to it. I'm not sure what pin refers to? -- Thank you, Richard.