Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1447227pxy; Thu, 6 May 2021 08:10:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqWMDetzYUoUGDzAz0X0kZXx9TxxDBBx3uW8sKHbPezJxjcdOTAaVZAOHQLY0KCBA33+BC X-Received: by 2002:aa7:8112:0:b029:27a:3b52:caf7 with SMTP id b18-20020aa781120000b029027a3b52caf7mr4903389pfi.35.1620313836529; Thu, 06 May 2021 08:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620313836; cv=none; d=google.com; s=arc-20160816; b=F6gcIR4H5iRAzHklAMCTF3wYUXQF2dsvh/TouVxKeGqubgGqnmj5i5gQbqHfuxbmsN Tj814dXkbT9ufdN8v8RXDL7ratNqcg0MnknZBEh0FPCpuOeBS0Xa0KY8Vkc7tRNnACiM 4dfaTPXVhj200u23RlDSsCfd9PjbXv8eFgXKTKqlRqLycErA/YO0upEUrc2B5uiy2zbd 2bn/xcgxYj8JelDndyaqqX7cyakZVe7SY4xzIk9OEdTkzazMt/fqXCmxTTeSh4g9VQdj 05WIERbBp9Rfh5xh2frjgdUYeN6TNhNpLZwl2HO7cySgFpvc1qEn5KJ4LFReKDj92juf EU8w== 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=/zIPaWEhlgClP3pnMrbMtFn6aLTXi51wfFQGiF9jVDE=; b=rre6quYePyOu65KTSXwPI1mVwJrOiNvX5iynI398LMRuYNlUu69TRkfZPfxUVVi+3i Mo8Tbds8ULIhagSUC/RgV5D+/5+hJkUa040kUUibD2QCVPmkBeNP0dUW1aPtoQQbraga ooJ+za50GSyNfyk0NFcisWe8qmXdB+th52vYeCgTTs44wiwftg4BtZDhjhioK6hS1lrS LA2OVqLkHBpocxcKWhlB1413nYPG+cms2GsYrgmgxoptjX2RgzjrMeyHCTojCPxzBH1T pyOXbX/RQYuLHki/l86SpZ/FKiud9DsiQTSkEZnkQjv/kplgEqX/7ntCH1XsJuHBEPlH eQiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EGY0k99J; 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; 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 2si3579518pfe.18.2021.05.06.08.10.20; Thu, 06 May 2021 08:10:36 -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=@kernel.org header.s=k20201202 header.b=EGY0k99J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234961AbhEFPJP (ORCPT + 99 others); Thu, 6 May 2021 11:09:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:59832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234901AbhEFPJP (ORCPT ); Thu, 6 May 2021 11:09:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 25C656102A; Thu, 6 May 2021 15:08:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620313697; bh=oyr+XBP7Bz+PMsRDON0jst54egtaEfqr+lGI+69AiYk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EGY0k99JiiPP7xYFNfEY/3qNoTW4VBLOTXA/X1PCDXSyXcEHYcfpZ9aXUa8V89Gst WkaSvqpAcvHt66WvdszAKUUq4R925OmqjsbQvnTm5oa8kncy38c2+1ECnyvNun1qUc 3ge7bwIpnCgM0Ad6IyenMguu6JOgoVZQWoAxF5hN1GmooK2gPJ8msmScnDZVDUiLkI k45jla5rddaXWeNPlR2d7QehBPjvb2m0K+3/frRFXtg5+4szdpUnZxLKZsGwVd2Ovq rGF1dgJFqfGLBnUp4M4ywpBZfuayvimoKsgTnxMENtUk1iGEIQVu4a8nPkbYA46wNN bUFlSyjV+F/Xw== Date: Thu, 6 May 2021 08:08:16 -0700 From: "Darrick J. Wong" To: Christoph Hellwig 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: <20210506150816.GE8532@magnolia> References: <20210504163550.1486337-1-leah.rumancik@gmail.com> <20210504163550.1486337-2-leah.rumancik@gmail.com> <20210505212711.GA8532@magnolia> <20210506071836.GA337144@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210506071836.GA337144@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, May 06, 2021 at 08:18:36AM +0100, Christoph Hellwig wrote: > 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. Heh, so that's a "stable" behavior. :) > > (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.. If the wording got tweaked to "...not readable via LBA interface after delete" then you could also REQ_OP_WRITE_ZEROES, which would work on a broader range of hardware. --D