Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2484422pxa; Mon, 3 Aug 2020 17:58:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw30GUp5l3aYp9hq2688jDrN02ndnvWY1eLfHtWrlVCQLEsk1O5U4b/y4I9MQHmlykspP/B X-Received: by 2002:a17:906:694b:: with SMTP id c11mr18793614ejs.232.1596502688669; Mon, 03 Aug 2020 17:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596502688; cv=none; d=google.com; s=arc-20160816; b=o7qocrqXCqq5YI9L4VASj3K44UFJjyRK85z0jHmWxU1ZWrZQmvnlR20lRTJlhvISI0 9HIwzCzhSgsOJmt+kov3jJGnFZ8b2fkkmLByGBwD5mam6h6iujWWNK1NDgBQIAy88p5v 03PKtxNbq/66pbk+IOwQ+8iqanAxVUc5l+UJakBcK4ii8Fai7Xdp9w1knaZ97dl6M+pq ctdKLUVZK/ETFShpCdQKZTYF3uUiNxdA62ex3fKn7ke3DM0mgoreMoRU0jBPTgoynxIJ c2BrUK5iyqnnDNfmbtaJldo7GFS3YWNdC+kTjL9Gk80a8B+D0UDnJ1mOWXrYrZs8jfxc FSaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=FjJMTE4KvXMpCY/67/12lkJPPVrCfLy8z1pCeu/QPi0=; b=f4zuWn9lQaEpcf5yW9Qj4ncWif3PdaT4Mf8P9rMccGKp85NqxFAiKV0K4E6IytQ1lx EmRvrEML0AygAGbGEUgJqngCu9lrym0pPs3Y4PXRvLFNCzR+mHst3Pu9I/VB+rfCD7CV G6ZnrMjUuwlIOAk6d+rR0s4RiKL138GJRd8b6tlhn5VDgzRDRJGC9vF95+d7FWGGoX03 ob/xeUQRR98ojC9TDw1DTfqX4NHXjJiobuLj+fUPMWlgfv0G+8t++m1ANrUiTxTeRgD9 Gw7aQAciJpLg+qDx9PG/ePQ4nM1PPa/uDPoaxPCKNxUQDHsY+D9PW5alxRwZTreFBXOW RvEg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si11145371edq.539.2020.08.03.17.57.45; Mon, 03 Aug 2020 17:58:08 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728727AbgHDA4k (ORCPT + 99 others); Mon, 3 Aug 2020 20:56:40 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8752 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727858AbgHDA4j (ORCPT ); Mon, 3 Aug 2020 20:56:39 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5F284BA27CE62047C1C4; Tue, 4 Aug 2020 08:56:37 +0800 (CST) Received: from [10.164.122.247] (10.164.122.247) by smtp.huawei.com (10.3.19.204) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 4 Aug 2020 08:56:34 +0800 Subject: Re: [f2fs-dev] [PATCH] f2fs: make file immutable even if releasing zero compression block To: Daeho Jeong , , , CC: Daeho Jeong References: <20200730050928.356916-1-daeho43@gmail.com> From: Chao Yu Message-ID: <3dd96915-51f1-e8ab-ad2d-29bfda68a635@huawei.com> Date: Tue, 4 Aug 2020 08:56:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200730050928.356916-1-daeho43@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.164.122.247] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/30 13:09, Daeho Jeong wrote: > From: Daeho Jeong > > When we use F2FS_IOC_RELEASE_COMPRESS_BLOCKS ioctl, if we can't find > any compressed blocks in the file even with large file size, the > ioctl just ends up without changing the file's status as immutable. > It makes the user, who expects that the file is immutable when it > returns successfully, confused. > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,