linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hughd@google.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Hugh Dickins <hughd@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	 Christoph Hellwig <hch@infradead.org>, Jan Kara <jack@suse.cz>,
	 William Kucharski <william.kucharski@oracle.com>,
	 linux-fsdevel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH next 2/3] shmem: Fix data loss when folio truncated
Date: Sat, 8 Jan 2022 09:12:08 -0800 (PST)	[thread overview]
Message-ID: <54faec38-f3f9-a326-65e2-cba91a40ccca@google.com> (raw)
In-Reply-To: <Ydhh39A92g7Xe1df@casper.infradead.org>

On Fri, 7 Jan 2022, Matthew Wilcox wrote:
> On Sun, Jan 02, 2022 at 05:34:05PM -0800, Hugh Dickins wrote:
> > xfstests generic 098 214 263 286 412 used to pass on huge tmpfs (well,
> > three of those _require_odirect, enabled by a shmem_direct_IO() stub),
> > but still fail even with the partial_end fix.
> > 
> > generic/098 output mismatch shows actual data loss:
> >     --- tests/generic/098.out
> >     +++ /home/hughd/xfstests/results//generic/098.out.bad
> >     @@ -4,9 +4,7 @@
> >      wrote 32768/32768 bytes at offset 262144
> >      XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
> >      File content after remount:
> >     -0000000 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
> >     -*
> >     -0400000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> >     +0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> >     ...
> 
> generic/098 is passing for me ;-(  I'm using 'always' for THPs.
> I'll have to try harder.  Regardless, I think your fix is good ...

Worrying that the test behaves differently.  Your 'always':
you have '-o huge=always' in the exported TMPFS_MOUNT_OPTIONS?
That should be enough, but I admit to belt and braces by also
echo force > /sys/kernel/mm/transparent_hugepage/shmem_enabled

Hugh
I also back up with


  reply	other threads:[~2022-01-08 17:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-03  1:34 Hugh Dickins
2022-01-07 15:53 ` Matthew Wilcox
2022-01-08 17:12   ` Hugh Dickins [this message]
2022-01-08 21:25     ` Matthew Wilcox

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=54faec38-f3f9-a326-65e2-cba91a40ccca@google.com \
    --to=hughd@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@infradead.org \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=william.kucharski@oracle.com \
    --cc=willy@infradead.org \
    /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