Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9617970rwr; Thu, 11 May 2023 18:35:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ifr4cITUvjisn9vo7PRXn/XsVPShCLeu/TZZfg0D9zFEU4CSNdE88lt2e4iRbPByt0VnI X-Received: by 2002:a17:902:ecc4:b0:1ad:8c8f:afb1 with SMTP id a4-20020a170902ecc400b001ad8c8fafb1mr8827247plh.39.1683855349156; Thu, 11 May 2023 18:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683855349; cv=none; d=google.com; s=arc-20160816; b=GeSiQ3NUyRH8ZmZK35RJYXD7NKHd+p6+h5fg+DS9Y4RgFSNkH3+jawOCuGNKkwmSKa +YnhJwaZYscZC36bQhQMKD/IBKp0tlEXbfWbswlV13qtrBoOXxuHAd7DBzwbodtWJyCU yPIw3GHBt5OEfUCmgL0He/eC6hYR+ce1p2x4F2dquuBws9jYdFD7x2JOJZlZp7rsHrKH c4KKPjKXChfbnF34hTzVav70wfyozE7IufYQrLI4ItwSXa2J8j/fZ1nvC98/yrg5JGiH 373QW8qdqDSFvdzfm0MdYtF/89MnBjQFJvDptybx8+g+5CvfWmgbRYkFFnYWfHwBUFqp Knew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=PmgiL3YYms4pueox3E/9WSDCVvorY3CYCoareNN8U+Y=; b=unuGX+izJjV/jqUfIRMyBT+ZESCvV/Xg0iD4DRQxfymbTVW41gmHX7IiL0HOzubDyI POrefi+qNGHgkfyr1eLkF/y4uMY8U86JKeZpcRp8XurPXm0YTM8eKuSw4E+GWP1MraRW TjwxuDL6gHNDEiGLS6tgz1wSCVX4LyLRFEoeLJXOI0qP5Ai+vdiK0TDzBuyBYObqUlV+ k0rAPQofT/oZt1UcRHYBv2oHlJ26y5syYlDBAD87WP3cwfRp4V7jwN+7O8cnic1+O+/p YsSu24w1g7b+RYbfrR7ddFHCfgX//rKju85ky3Ci8LCu5SZVdf778XpdIE1mLU0riHiF InjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=acnZG17E; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go13-20020a17090b03cd00b0024b9e5aa258si8060653pjb.0.2023.05.11.18.35.35; Thu, 11 May 2023 18:35:49 -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=@gmail.com header.s=20221208 header.b=acnZG17E; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239714AbjELBPE (ORCPT + 99 others); Thu, 11 May 2023 21:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjELBPD (ORCPT ); Thu, 11 May 2023 21:15:03 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CA1B558B for ; Thu, 11 May 2023 18:15:02 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-55a20a56a01so166574897b3.3 for ; Thu, 11 May 2023 18:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683854101; x=1686446101; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PmgiL3YYms4pueox3E/9WSDCVvorY3CYCoareNN8U+Y=; b=acnZG17EHJKzJ7LIGLMb/VPxDjPDvQXgCnTEaUxlCti+GjJ6Le6+b3JepCZes0SvoZ pFD4nWt6mPWP0b0ZhVdRIlVLUIenTxCboVzZNA7uPgfe4JviSaqmkXeMGBzeDgI29W4v q09Wc0WITh7/E9NOkXIfC2/NN5l6InNGAPHR1QcfF43dbUxjxv01CQiuWkc5JsebgGGe soxPsTi5Abyv/UFTMHP440wRrKhEzp/MUVg9tqEppg1+Jxaj7g22T1KrJCm3S4RDKpiZ +jWtx/qRQk0FLy1JTdjBCt0W4aHb6KtjWKLtKnVVYeoSm6HSManmtSEl1S7lxr6GFa0U mB0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683854101; x=1686446101; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PmgiL3YYms4pueox3E/9WSDCVvorY3CYCoareNN8U+Y=; b=bJu4VOgYGDqGaJRAtTY9Ny3uXB6qERommEKJfSVqqCnJCUxRNGour/J506e2NvT7JZ yvLDo2fNTwnp4Su26EXYVEYEhIUDbLO3gxSDJkY2nkXJwkOiyWC+8oejtLpPPpnoUJxE THy31MOD8hVTijUkXP+yCmDo0dPP5De5N4jELa3oWm+EEhyp3vIrmE8Lb3pP9qZaTGHa zqNRw0PD+37eBIM7IQn3SncMurGsZ+Co0zWxDdunbmz0tvKx9nm4mkhQD1Nbk2NXZmJn 4/2AMhplw2PV5XerZs/zoPcAjpdo2vgEoGUW96MRZEvto59sVKh62rLu7Trpt089qBX+ 2LBA== X-Gm-Message-State: AC+VfDxea/sC1qLaz7MT1ISvyFoUVv0UlCJ1Ik9/9cIXarRwyjMVH1D6 y6gNZvrYvM5nnADFY3bFEaZid49vLjGx7hDIQ6oGkGC22uA= X-Received: by 2002:a0d:e648:0:b0:55a:c6c:bef0 with SMTP id p69-20020a0de648000000b0055a0c6cbef0mr22469558ywe.23.1683854101272; Thu, 11 May 2023 18:15:01 -0700 (PDT) MIME-Version: 1.0 From: Sijie Lan Date: Thu, 11 May 2023 21:10:36 -0400 Message-ID: Subject: Is compression available under direct-io mode? To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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 compression feature? In other words, must f2fs use an inside buffer to provide compression functions?