Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1534472rwd; Tue, 16 May 2023 19:47:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5x2pZIrq6jaAo0v0Wr7dVqlV6Jpp7EVQ9s7KkG/1lQHBz3vQOu1jFPsBuKE1nhM1NWt00s X-Received: by 2002:a17:90a:c8:b0:247:90d8:41fd with SMTP id v8-20020a17090a00c800b0024790d841fdmr38648633pjd.26.1684291663806; Tue, 16 May 2023 19:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684291663; cv=none; d=google.com; s=arc-20160816; b=AIEDP5YrJhHYzocuhIO8DAh5upwHJZrdfUm4drO22HK0eU8HuzbmH6P/E1f1yZsOIo WcJcItqG7JDk+RIv81k1oA6h8VD+kRDt814CJq6O/EbN5olfCNhfjaYcFJlhtD/j/1hI hIXn0Avpfi64qG/CMB83d7IxqgKw3XfOWZGX/5AXF1/D1bYMiT0JZk5QpiJMHivC48xl F5ZNisbSHaR0I4CwvV3YUZxhgf+OPTMKoRxSXotMTtudgU257ZMagFuW+7UM/wcKfD42 yT0iW7kD2ATqgQvJL/3wMxW3XwGSijJ12skcUi9+9oJz5RU4pEh/4oZ+ADKdmJJEGwzz HOnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=4YWukZKCN2HkLC/JCPOIBlycl26Pn3SOsK8esB/zYyE=; b=urbtpagf+TjwaU3HPNZsapY0d1tb2PvW65QnsLdfVsmek+fA14nkNPAYrOylybwhe3 BsMxCx309t+z8pxVQ0+nuZ6W3F151ycxkckra5EAqOLRQzEb5Lc9lcx7NC7AHqHkOV57 +1axsdv8gf68Yugvbs6fS4SuJzt6ZmElWOWEqKgAYs3YBvepi7l++lBCkqDPlxzgda8w cugYk+18LaMZfeqcYvf86q9plmX4NTLPwdepVmWZC7uSW/tMb0SF2K66b8gBqNOpJsbB il91VF+XEV6D+ogauDzUra20jGtUsva0zKsht3+HeAQpoPCghJAT2A6tyYns1Ps5XAwt CCmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JZH/SIc3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a637517000000b0053440fe4ebcsi2268001pgc.759.2023.05.16.19.47.29; Tue, 16 May 2023 19:47:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JZH/SIc3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbjEQCcE (ORCPT + 99 others); Tue, 16 May 2023 22:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbjEQCcD (ORCPT ); Tue, 16 May 2023 22:32:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AFB310E3 for ; Tue, 16 May 2023 19:32:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9BB18640C7 for ; Wed, 17 May 2023 02:32:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D72EC433EF; Wed, 17 May 2023 02:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684290722; bh=EGWWvTtIz/wefBtSbQjyXbGccmk7EVTm65ykgv4tinQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=JZH/SIc3l8kO4VCTPoT1GAbA53InelUdM05t7DUEP7A85TszHsbe2z7LoVUIPDMno sHQ+LsphgUkO0H1IavoQUOjYM4HYMj92ouwYS6ePPjqmYnZRxKWK+M/ApYZYyNp7Xr QygGe3TAOW1sCUUvW7uqwwfg8oW+k2cxqsfKPmDtJI0VR9SgQAJ2CyBxW+JPwYw0rQ JTlPLUBy1kk/or+3s3Wbge7A1GHgP3vIJwwqc8k3jyO59Pm5oW/hGc/NgF4ImQuXju HgJd/7hH0+aDobDheNoBDL6XauiiPKPpT41srRH0gqCQNWBjhvk3//HCNSrQa/RXlK tCqLXe+3f2ISg== Message-ID: Date: Wed, 17 May 2023 10:32:00 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [f2fs-dev] Is compression available under direct-io mode? Content-Language: en-US To: Sijie Lan , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/5/12 9:10, Sijie Lan wrote: > Hi, guys, > > When I do some specific test scenarios, I want to do some direct write > after data have been compressed in F2FS, but when I track the internal > functions, it seems F2FS forces my direct-io request to buffer-io > mode. Does it mean we can not do the write direct-io if we applied the Yes, compression feature depends on page cache. Thanks, > compression feature? In other words, must f2fs use an inside buffer to > provide compression functions? > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel