Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3585944pxb; Mon, 16 Nov 2020 20:18:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF4NZQG666aTPBZ3PFaIrob5+pwGkWEyQBatbgMcp2Cvgivd/r1vUP+sXl2GM5AoWFMUua X-Received: by 2002:a05:6402:1119:: with SMTP id u25mr20088338edv.37.1605586720709; Mon, 16 Nov 2020 20:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605586720; cv=none; d=google.com; s=arc-20160816; b=kGyeouDTemsAk9Uco93rH591rEdxWIE2OqGnGsGp8kPbIlb+Ov558tS53tXg3o2YPW wb1/KF6FwDka0i/nWIgsyhegQGP5YEyYa1vf0oejNNObjohfJoyN6VnPh2kockIi78O5 UTl6AiBzG/Guz59JwygLW3PtpmXbAImtCkI7Fl82ddZDhQvAhyQbmnTOE3fEyb02y2f8 ibXLXcAqcGXXh92C5v0/OL778Cf7ScE3O5UQe09r5WQkIAjKQupEZaSAuo9uXvVwP7Jo wrwDCgIPacTbrm801A2dPnOQhL9Ozsa2Qk39Xs2CMY7Aen7lDrHV3Gd80e8ASHBuoYQO NscQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kT2IJiq9vABCGnZpcT94UHSzFtZ6Cb6ALbwPgvhPm+k=; b=SOmL70QGcAuf2EOuIzZEscaDGsFxC9vkdm1OQSy6jpO57lOaUcZFlD+xQO9uzqS05K 8YGH4pF1PP9GmGPNG0wfU3xAtzuzcfgm78rLI1oZxolJNCJZVY970kP7hI3p9m9wbBxE k1UEB64JJcnxMeNXYwi/0LroaowdxhWSnXkag3/vK23NZOu3WSx7iqble9gbK8OC247n ta5G1JvIavshhMq3TUVr8ne1Tsl3/rai8S9tpn7OFyMSbLva6RtlYWUKv7TJ4BLhvTLB mfHTvuvuD1mZHaQlUbIGq2+4B44UGOL6iiDlvSMGue5vZBvwIFpFqCqUhzaxOj3Jey6P S/rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o+UDMrWZ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si13105513ejz.656.2020.11.16.20.18.17; Mon, 16 Nov 2020 20:18:40 -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=@kernel.org header.s=default header.b=o+UDMrWZ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727165AbgKQEO5 (ORCPT + 99 others); Mon, 16 Nov 2020 23:14:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:57770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727098AbgKQEO4 (ORCPT ); Mon, 16 Nov 2020 23:14:56 -0500 Received: from sol.localdomain (172-10-235-113.lightspeed.sntcca.sbcglobal.net [172.10.235.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39ED824692; Tue, 17 Nov 2020 04:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605586496; bh=EUZuSaWR7L8DS5oY3+rH31vEa/9kDCzJ9/I0RDpwemM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o+UDMrWZsAB8vfZVXXHBEyaOsdr9Z7jW4tHsDEc5ybT409kb0Clb58Jpk6Cj825Nv HgTZsdLl+uYtHt6Ane5SiOLN25muFQx6kjLVlOjMCQzVj5S0FPSE3/TTe+iffbu5vn ALSgWq4U4NURD7exEGe0A1i6idTtgKXtrZ97O5eQ= Date: Mon, 16 Nov 2020 20:14:54 -0800 From: Eric Biggers To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Subject: Re: [f2fs-dev] [PATCH 1/2] f2fs: add disable_auto_compr mount option Message-ID: References: <20201117040223.858979-1-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117040223.858979-1-daeho43@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset doesn't have a cover letter, and it doesn't apply to f2fs/dev, so I'm not sure what its purpose is. On Tue, Nov 17, 2020 at 01:02:22PM +0900, Daeho Jeong wrote: > From: Daeho Jeong > > We will add a new disable_auto_compr mount option to turn off the > automaic compression on the compression enabled file, in order to > give discretion of choosing the target file and the timing of > compression to the user. > > Signed-off-by: Daeho Jeong > --- > Documentation/filesystems/f2fs.rst | 4 ++++ > fs/f2fs/data.c | 10 +++++----- > fs/f2fs/f2fs.h | 8 ++++++++ > fs/f2fs/segment.c | 2 +- > fs/f2fs/super.c | 9 +++++++++ > 5 files changed, 27 insertions(+), 6 deletions(-) > > diff --git a/Documentation/filesystems/f2fs.rst b/Documentation/filesystems/f2fs.rst > index b8ee761c9922..c36ca1e0f7ab 100644 > --- a/Documentation/filesystems/f2fs.rst > +++ b/Documentation/filesystems/f2fs.rst > @@ -260,6 +260,10 @@ compress_extension=%s Support adding specified extension, so that f2fs can enab > For other files, we can still enable compression via ioctl. > Note that, there is one reserved special extension '*', it > can be set to enable compression for all files. > +disable_auto_compr Even if compression feature is enabled, this option can > + disable automaic compression on the compression enabled > + file to give discretion of choosing the target file and > + the timing of compression to the user. I don't understand. How is this different from just not specifying the compress_extension mount option? And how can a file have compression both enabled and disabled at the same time? - Eric