public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Leah Rumancik <leah.rumancik@gmail.com>,
	linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH v3 2/3] ext4: add ioctl EXT4_IOC_CHECKPOINT
Date: Thu, 6 May 2021 08:08:16 -0700	[thread overview]
Message-ID: <20210506150816.GE8532@magnolia> (raw)
In-Reply-To: <20210506071836.GA337144@infradead.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..

<shrug> 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

  reply	other threads:[~2021-05-06 15:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04 16:35 [PATCH v3 1/3] ext4: add flags argument to jbd2_journal_flush Leah Rumancik
2021-05-04 16:35 ` [PATCH v3 2/3] ext4: add ioctl EXT4_IOC_CHECKPOINT Leah Rumancik
2021-05-05 16:55   ` harshad shirwadkar
2021-05-05 21:31     ` Darrick J. Wong
2021-05-05 21:27   ` Darrick J. Wong
2021-05-05 22:08     ` Darrick J. Wong
2021-05-06 15:58       ` Darrick J. Wong
2021-05-06 18:18         ` Leah Rumancik
2021-05-07 16:22           ` harshad shirwadkar
2021-05-11 17:11             ` harshad shirwadkar
2021-05-06  7:18     ` Christoph Hellwig
2021-05-06 15:08       ` Darrick J. Wong [this message]
2021-05-04 16:35 ` [PATCH v3 3/3] ext4: update journal documentation Leah Rumancik
2021-05-05 22:08   ` Darrick J. Wong
2021-05-05 21:37 ` [PATCH v3 1/3] ext4: add flags argument to jbd2_journal_flush Darrick J. Wong
2021-05-06 14:15   ` Leah Rumancik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210506150816.GE8532@magnolia \
    --to=djwong@kernel.org \
    --cc=hch@infradead.org \
    --cc=leah.rumancik@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox