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=-13.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS 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 A04CFC433E0 for ; Thu, 4 Mar 2021 20:20:46 +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 53CE664F45; Thu, 4 Mar 2021 20:20:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 53CE664F45 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 1lHuSi-0000Pr-Rc; Thu, 04 Mar 2021 20:20:44 +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 1lHuSh-0000Pb-Ag for linux-f2fs-devel@lists.sourceforge.net; Thu, 04 Mar 2021 20:20:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: 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=n3bv559eW8MeU2X4TaEAzz022lWOr9kHtdrukxSmyrk=; b=gsNefM5OGR0rsi0FlFHGPA1wb0 0L80EIySGeNKVLjR1spa8s+P71iAoXkM+QICtmqtkd9VyIc5mhgP+Zz2dsE/iTN2PKrm+zOitEMOk i7K8g/3HGSUcj4wHy/CWRJmIxnQEYaetfYdRtrfB5EuCcCi6wqX8gl1SW9xAxN6xDq6c=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding: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=n3bv559eW8MeU2X4TaEAzz022lWOr9kHtdrukxSmyrk=; b=meQZNyYImO245Zl+obCWKWTT3t y1BfkO/6BLsI6hqc7MKNl/waxniNml3oZIEOrfg8BnAAQbn8RR0NiFeLnCY6xd63D4D7KObgZ1fpc 4PmtxmZpYFNvlaoLipOyNhy1tvnEw5Q1fhdXNlFEt7Cw1GS8U8OXtBcXFjnzi6qm7mLA=; 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 1lHuSV-0007WE-RI for linux-f2fs-devel@lists.sourceforge.net; Thu, 04 Mar 2021 20:20:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id CDE7D64F69; Thu, 4 Mar 2021 20:20:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614889220; bh=PK2fbfeEfKO2itjb1QWIZjHnUzohmqddhbtXHSB6zF8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iPTNuML+CXWJc09vt0JYNp710dMBVnLADtpB4+ca+W/0ZIp4JpYS7Mnz0y4PmsJuF 0Z6IObjrFUS2/EHJ3bz1dGqsJKPryDiRtPUyZGkogQm8ISA+jCHka3xootyQXVQrV6 vgS9r2c+eItNlycKDnzUm4g2Hq6h9ikuwbHBCnLUAP0mDm85rIPzklf7JMDIrThp1v yAbtzBIYK3p0Y+mZD0xwmZPg+FMLty+/Zec/DCWjC0x85qDA3F2W7jCQPlA5p1XZkW g7BaFPbA3NicrIr64iedQlKrKcgm02ZxHRzd+S+P2WDrdecAhCxF0aJKtV7OSh2M3T vrKQE3J+6hL0A== Date: Thu, 4 Mar 2021 12:20:18 -0800 From: Jaegeuk Kim To: Chao Yu Message-ID: References: <20210202080056.51658-1-yuchao0@huawei.com> <46e9924c-0086-cd2a-2e93-7149b92ba27e@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1lHuSV-0007WE-RI Subject: Re: [f2fs-dev] [PATCH v4] f2fs: compress: add compress_inode to cache compressed blockst 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: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 02/27, Jaegeuk Kim wrote: > On 02/04, Chao Yu wrote: > > Jaegeuk, > > > > On 2021/2/2 16:00, Chao Yu wrote: > > > - for (i = 0; i < dic->nr_cpages; i++) { > > > + for (i = 0; i < cc->nr_cpages; i++) { > > > struct page *page = dic->cpages[i]; > > > > por_fsstress still hang in this line? > > I'm stuck on testing the patches, since the latest kernel is panicking somehow. > Let me update later, once I can test a bit. :( It seems this works without error. https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev&id=4e6e1364dccba80ed44925870b97fbcf989b96c9 > > > > > Thanks, > > > > > block_t blkaddr; > > > struct bio_post_read_ctx *ctx; > > > @@ -2201,6 +2207,14 @@ int f2fs_read_multi_pages(struct compress_ctx *cc, struct bio **bio_ret, > > > blkaddr = data_blkaddr(dn.inode, dn.node_page, > > > dn.ofs_in_node + i + 1); > > > + f2fs_wait_on_block_writeback(inode, blkaddr); > > > + > > > + if (f2fs_load_compressed_page(sbi, page, blkaddr)) { > > > + if (atomic_dec_and_test(&dic->remaining_pages)) > > > + f2fs_decompress_cluster(dic); > > > + continue; > > > + } > > > + > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel