Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1158961pxu; Fri, 27 Nov 2020 00:47:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKUOZdwSHw7dHZzXtoDrjFYlAN5aExqqm3Te9/+gzQ8LyHaNv/OsN5coMNM7loEw109qAO X-Received: by 2002:a17:906:2e0f:: with SMTP id n15mr6518202eji.486.1606466844196; Fri, 27 Nov 2020 00:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466844; cv=none; d=google.com; s=arc-20160816; b=i0vyAmQ6oTIh0csc3ro3u3MEVkS9UjmSPXt/KUC44BTNsAe5/nkU0QGRVWT2VkpgvE /coxvmf3Xt5Mv28BC7qYTNSzWzQYGOOXOrK/69loJ71+I5uzlc89gJk42C/6M6oarhcS 3N+fUvhAUkXsGGhg0yIl4DOVgdxxBndC+ccfbJMsYcsbZ2FUbRk/YvwdGKB12ifyaOxu Fp8ORImdk1UFCY9HjRsYLlJkZYqReWQKuw+ZRq29OIY8mpsrR0+qca9dSt2N5oEku1WX 0u8QHahW9oPdmlXZ2VYd5vr2zFqFZ2F/CBMhe1B28c+E2A/LmnNbtL/X8Jd5st0NBe5i Knaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hgk+y3R/+wKHwY8AHHPwfYUtuRseW4QHOS+AXJzFHJc=; b=ePAYx61jfGDbKDwKUmvgZYE8WEuw2wGxpTdpAhGJ2V1v/Lr28/97CnLuAbki09jZ82 Dp2EvTIsTNNU7FXV5Qthrbk57UzkLMy4eIJE78UH7+KN7DN3g3JuxfoQ7r3TSYf1+YN9 HItYNVQLtJOjD68umD0GyLVDv/o18/kPIaYiKhlQaNGPMGs+ZVhIb4pewIEVorkj80EK QE0Y8dwvRbZi+ZpIhFS3PTplpxVlFjs/3Xeh+QSPcII8nC3VPfi/WQdXw90SqpkBJVTB gYR2dgcX/umkM25FLViujvIDkDYsjzpKS11+mxkKzWj0DjiBy8jula2wjbD7PompMNoD FQog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UmZCklVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce13si4443827ejb.76.2020.11.27.00.47.01; Fri, 27 Nov 2020 00:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UmZCklVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388229AbgKZXrC (ORCPT + 99 others); Thu, 26 Nov 2020 18:47:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729173AbgKZXrC (ORCPT ); Thu, 26 Nov 2020 18:47:02 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50DC2C0613D4 for ; Thu, 26 Nov 2020 15:47:00 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id b17so3999542ljf.12 for ; Thu, 26 Nov 2020 15:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hgk+y3R/+wKHwY8AHHPwfYUtuRseW4QHOS+AXJzFHJc=; b=UmZCklVE+6LJBZ0ksVoPTJGBuaE/NBsqmU1zhUV2JHO+B1a3YZprPMTxMvlFYLe585 8phq9Up9vzDLmSOQwsIG1W+AxT4EyUf2qOm/wRGyf4WS+Q26VYwYp3rKHA3t0qOp2ZfE wZfH2QRJP1xMN1Mc8kgAd8naaakEi0S6S5At8gW5g+iZYYHtlIVeOeQy5YcdzDsPZHNw qGs11TL4maxG7T8+iBgl9Zf/xxKo4X2KJopi6ZGaV0jEzPH9yqojYS45ehjH+O3lMvIa pm1g3qUpd1nm1ZxSyoFELZw+5BItIOwHelBeDNijVZriJ7sSVJ63VuNHPKzWXF0DjV1E 8B6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hgk+y3R/+wKHwY8AHHPwfYUtuRseW4QHOS+AXJzFHJc=; b=WrpLaWf1j6tfwrJ2K5fqprULtPCSF0nkQl4UI6DwgaHM9RlKPY1/2UsYn7eDKeUdfu jUurw2pEumfCFkXCs6fG406Ujd981s6RP/aDQ+SkYzu5ASNTO5jbsPT4uDgJqdBehBmN mwYoeqQEXm1zVcWZNo+wWT3XjRpGBbmleuh1G46m939obm74BijLlAvJoESYukzDHlNJ OijMPZQ7RALQSQLIHxC+9k567AJBZsIbnfDiph7sJLhgaSK5gB2DzFDWf2q+4Qb3yN8F gJVvB50LdvVqY1uecAv9l0rQS/cKEtLykjtwZkTgE+x5vfuS81oy/pgNJOHstrfqjhg2 CuDw== X-Gm-Message-State: AOAM531QiZiYaPWOPadHdNebwlQRmzWqvt55uReuR8B/xHExUcaWDeWm Vomvs7yBQzz8dEy0LWrhgvDPWAbLkHhSnYqO4JA= X-Received: by 2002:a05:651c:213:: with SMTP id y19mr2089989ljn.250.1606434418814; Thu, 26 Nov 2020 15:46:58 -0800 (PST) MIME-Version: 1.0 References: <20201123031751.36811-1-daeho43@gmail.com> <20201123031751.36811-2-daeho43@gmail.com> <5b3cb83d-5d0f-c1ca-2cff-f28372dec48e@huawei.com> In-Reply-To: From: Daeho Jeong Date: Fri, 27 Nov 2020 08:46:47 +0900 Message-ID: Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE To: Eric Biggers Cc: Chao Yu , Daeho Jeong , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chao, Got it~ Eric, Actually, I wanted to detour the internal readahead mechanism using page_cache_ra_unbounded() to generate cluster size aligned read requests. But, page_cache_async_readahead() or page_cache_sync_readahead() can be also good enough, since those can compensate for the misaligned reads reading more pages in advance. Thanks, 2020=EB=85=84 11=EC=9B=94 27=EC=9D=BC (=EA=B8=88) =EC=98=A4=EC=A0=84 2:49, = Eric Biggers =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Thu, Nov 26, 2020 at 02:04:41PM +0900, Daeho Jeong wrote: > > Eric, > > > > do_page_cache_ra() is defined in mm/internal.h for internal use > > between in mm, so we cannot use this one right now. > > So, I think we could use page_cache_ra_unbounded(), because we already > > check i_size boundary on our own. > > What do you think? > > What about page_cache_async_readahead() or page_cache_sync_readahead()? > > - Eric