Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1115320pxy; Thu, 6 May 2021 00:19:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhkMqOe7owdTiBIturKscLhtBuBnWZB+kMND26paNx+MShBfvjS8Sp8gGSFIZvffxF+PBG X-Received: by 2002:a17:906:c010:: with SMTP id e16mr2937624ejz.214.1620285593474; Thu, 06 May 2021 00:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620285593; cv=none; d=google.com; s=arc-20160816; b=T+tiV4V+wUztulI9evBnUWa2/m0eW7KW7mwrzHRs2wqvmO8/303Zb8XRT/8Ylqyh8f m6hh64Hr4NLcn8+p5DbJ9d+YNItFSTs8h+ZqnCCmM/HM8LB2t9KGCQAQ5lF5plvsXETu e9+sm52t3NQMbgJpflHVjgWFceXc0W9I1hYh+IWlfVPd3juygF2CygULvsn3ZoX/HI4H xEolzwP9UDZp9OU+QHLz1H1NBVTUHtMg3kDpQN08f8g1exgbHOXkhdTStVzlwASWk58H 3mmMfmqi4BRfbgyLKAlhDcSUG/aiYf8Isbf2t2P5Au2RAXw94gTyj9Mp+PFSc2OQ7PIR Es9w== 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=7vJ29roYHGe97kqrGtKhXmkCGEDSMicp13LSjdLKcok=; b=eWY1E5VG9NbDYJeApyuiPcGzwh7p9UDbG6e0q0IwTGx3XpSjVMCc0Pdo66+jTVwFYu +SIereIbZ8FG7A4kXy5jWvMU/pfvwcUVloihV3McCcJOrOHl4IvAY15UGUKOCiAaelFY CQBqtZnJErWzl1jSBup6zpxG3IWyLbRfN9/4VcLCXe5ZUgIJ4JQrhjnjw96FK4c/8JJk A94x8SzSDFeS2HRvTxsb8hGMNcKuzoyiTeyqO2D1OhKJLpTHkyHP7ApyU+GmTVCfjtP+ 5eWBb3kklBdjRDHZmkLJILI/HINE0UP9V0A51Z6I0EiAZ7ld0R5DfeCh7Zd5dOXHrjZu Qluw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pkzqb91k; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 eb13si1961168edb.314.2021.05.06.00.19.27; Thu, 06 May 2021 00:19:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=casper.20170209 header.b=pkzqb91k; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233259AbhEFHUB (ORCPT + 99 others); Thu, 6 May 2021 03:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbhEFHUA (ORCPT ); Thu, 6 May 2021 03:20:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27615C061574 for ; Thu, 6 May 2021 00:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7vJ29roYHGe97kqrGtKhXmkCGEDSMicp13LSjdLKcok=; b=pkzqb91kMkW7wHP0qGY4/ASYrf X2YCkAh2nnq46gsdjVHfYpgx++5Jcsv1oW2T7KIzNwvqOL+c6PdbSLVd/GN/OR0oAEv8buYwUJl4T ylChvWBg8Vd00/r0Zeg+WAWgDO7neHs0cKyUpwj0hArADszuxSG5qU/ujGUeD3reiVDAP4hTI+AR8 oQSv4VqEeUL3D8jpMMpB9qCaz7tD2+k8d7VA4jgBqrRBfqFjEmVpfr6BOGSCCsIgS5PaQz+btx7ZQ dFUiQa82G2ezt8TUQDwf/P0EUpzqPhUnwTxTN64ervY916ubQBRiFlfBvtI4j1eXTroHjyMa6YoSF YK2ITj2g==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1leYHM-001Q0a-VJ; Thu, 06 May 2021 07:18:50 +0000 Date: Thu, 6 May 2021 08:18:36 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Leah Rumancik , linux-ext4@vger.kernel.org, tytso@mit.edu Subject: Re: [PATCH v3 2/3] ext4: add ioctl EXT4_IOC_CHECKPOINT Message-ID: <20210506071836.GA337144@infradead.org> References: <20210504163550.1486337-1-leah.rumancik@gmail.com> <20210504163550.1486337-2-leah.rumancik@gmail.com> <20210505212711.GA8532@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210505212711.GA8532@magnolia> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, May 05, 2021 at 02:27:11PM -0700, Darrick J. Wong wrote: > Er... what specifically does "data" mean? File data, or just the dirent > blocks? > > I think this is only true if discard_zeroes_data == 1, right? The last > I looked, ext4 was calling REQ_OP_DISCARD, not REQ_OP_WRITE_ZEROES. > > Also, there are some SSDs that "implement" discard as nop, which means > that the old contents can still be read by re-reading the LBAs. What > about those? Not just some, but most at least for corner cases. ATA TRIM, SCSI UNMAP and NVMe Deallocate all explicitly allow for keeping some of the old data, and devices make use of that when the discard requests does not map to their internal granularities. > (Also wondering if this is where FS_SECRM_FL files should get their > freed file blocks erased with REQ_OP_SECURE_ERASE...) Only implemented for mmc..