Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1285940pxu; Mon, 23 Nov 2020 17:05:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYZwihC3LnZ0Z+if3r1FMpDC3Lllkm51vQp49PBQ6mFpwWdSMNmvC67NspYYYI3X8KJ3um X-Received: by 2002:a05:6402:cba:: with SMTP id cn26mr1839109edb.259.1606179954440; Mon, 23 Nov 2020 17:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606179954; cv=none; d=google.com; s=arc-20160816; b=dlX/DPFUxJyYNI6BjINTwl/kfFOeHmdabiebWAUCEIecPP6gL5WQlPFYT3JByGBU4l oyf1mOQZxFEwQgo3/zKMyyViq7nLZfCWRYmq4HBccwCpzCnhqneArMr8JIEShxdlTpFz 5Db+nKYsOxlATh6L32v5tTQlUo1xI+hmIof6hzI4TYK3vS/Cyp4kmoj4ohVaHHghC7DN YgAyfIo1btWDLB6P6mja0T83cj9TimUPedQOmu9K/BSoAGmQ3bRtqk/jvYWPuQRWlu/9 AZvOne02i2ebtOMY56ZXSMTslh7mGDDrLmjGmAao67l0jBlhYzBCJ9sUd2yXZlR9s0R2 2/BA== 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=0vzXw+/uxksrYSQi7P32GugamvpCbRVeit1O2RKCjC8=; b=Iz+6t+V7PY1zjUnq98worpSH+WulX/rZS/qFF6FVEh3hyQCr1q1w/7jirtytmSnmfR t8mD5TaJkdnTEU//xKnWzOaII0+1fJD98f+MWmYeJudPEUfN7Xd8+3xxMjwZEkIl4NuV JQp1SPnKR5q0ye3HL4tQC+ya3bxdF83G93Y9nNKnjHpwBEWg9je1kc7DmIrrGJUfu6RC JS/xcIhBk+Y/JXSZ/1K+exPvbYkriYwze0liRGuCEcBnloRh00Nb4C/YhuhRPYRf9UVw K3BbXU3yWliJBBAa7v9FzCX7F1HSnpiSHKxWnQ8XtlqzaUrthZbpPbCF3c82pjoUKX7I XJtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EF1azQY4; 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 p9si7681962edm.38.2020.11.23.17.05.30; Mon, 23 Nov 2020 17:05:54 -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=EF1azQY4; 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 S1728008AbgKXBDq (ORCPT + 99 others); Mon, 23 Nov 2020 20:03:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgKXBDq (ORCPT ); Mon, 23 Nov 2020 20:03:46 -0500 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD26AC0613CF for ; Mon, 23 Nov 2020 17:03:45 -0800 (PST) Received: by mail-lf1-x141.google.com with SMTP id v14so4318479lfo.3 for ; Mon, 23 Nov 2020 17:03:45 -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=0vzXw+/uxksrYSQi7P32GugamvpCbRVeit1O2RKCjC8=; b=EF1azQY4IzEj9jf33+wizwLb9UX45vSEYoFf2iwNgKTZGwbS+KxINRZEnRRocnfdlU IhSXD+t6wzk0HhlurTGK5mQiOlzilaiFOF8Fm5y4WtY1+k+JY0eWAIbLr0QA6y40h3zm 1j5RdKHOzxe7to5SM0JgLz5hyvAHuC4cymOEPx9FyZ/da74tUA7dGWxl2UnSitL3/QDz QOnZLFk9m5byAiGhndXd02N+gSUNyI+6poo1I3NMfKhGRsK/BjCfnQxQKOCtsDjxkvDn kDDYwDExctxD2JhAH19FRFqc7jFh2VsJOG3m15c1h/I3CNrPX6omgb9PTy+UKVL1MOBB EgDg== 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=0vzXw+/uxksrYSQi7P32GugamvpCbRVeit1O2RKCjC8=; b=hziw0Mgy0z+PBzi4AEWjKOwkvMB6jKmD018vxd9OKw9dho99owQluqiIMVm5h7PnYb EKraK3O+lJgRJjRcdND4k+lBE1xvmW0ZoKOAjyGjtAskwV8CEXBjDnDpwiQ99M5Ug0iM XW29IBzg56mYCZEiGLPzUlTFHBLT9asCjK8IHgMbZJQnc8IxMddIwOcC8DSQuL+k653O edh3p9miebiIQYAcIxsTA76dDjzi8PHCvD8HgBwzaMqQbCBlKLSdszg7dbSljUByBBDW kG2sxNMHunJcOTYLx7vV75hVdGDzV6zAl8XMVL4/MV0q/v2HSlU0er6J+X6InZl1hwK2 FRFA== X-Gm-Message-State: AOAM533ExkdOqG/xI0BOjXWTNY/VIslbyxDqWBXgYNc69R6vLhSKXd/x lLKiGD9NRkWmcj05PKK/zDgDBGCS8URvNCYHDtI= X-Received: by 2002:ac2:51b4:: with SMTP id f20mr740123lfk.338.1606179824105; Mon, 23 Nov 2020 17:03:44 -0800 (PST) MIME-Version: 1.0 References: <20201123031751.36811-1-daeho43@gmail.com> <20201123031751.36811-2-daeho43@gmail.com> <20201123184821.GB3694916@gmail.com> In-Reply-To: From: Daeho Jeong Date: Tue, 24 Nov 2020 10:03:33 +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: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 11=EC=9B=94 24=EC=9D=BC (=ED=99=94) =EC=98=A4=EC=A0=84 8:29, = Eric Biggers =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Tue, Nov 24, 2020 at 08:02:21AM +0900, Daeho Jeong wrote: > > Jaegeuk, > > > > My mistake~ > > > > Eric, > > > > What I want is like do_page_cache_ra(), but I used > > page_cache_ra_unbounded() directly, because we already checked that > > read is within i_size. > > > > Or we could use do_page_cache_ra(), but it might do the same check in i= t again. > > What do you think? > > page_cache_ra_unbounded() is basically a quirk for how fs-verity is imple= mented > in ext4 and f2fs. I don't think people would be happy if it's used in ot= her > cases, where it's not needed. Checking against i_size multiple times is = fine. > Got your point. Thanks. > > > > I could add some description about these in > > Documentation/filesystems/f2fs.rst and I implemented tests internally. > > Documentation in f2fs.rst sounds good. All the f2fs ioctls should be > documented there. > > The tests should be runnable by any kernel developer; "internal" tests ar= en't > very useful. Could you add tests to xfstests? > Yes, I'll add all the internal test cases to xfstests soon~ > - Eric