]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test writepage cached mapping validity
authorBrian Foster <bfoster@redhat.com>
Tue, 15 Jan 2019 14:09:45 +0000 (09:09 -0500)
committerEryu Guan <guaneryu@gmail.com>
Wed, 16 Jan 2019 08:20:53 +0000 (16:20 +0800)
commitbe5dedec18d2dbc5125c49c58e43eef49498918c
treee6f2948058917d22757d1fe3b6c67f3123c37111
parent8fc1e7c157fb76d383a5d5ff81308f771a4ba42a
generic: test writepage cached mapping validity

XFS has a bug where page writeback can end up sending data to the
wrong location due to a stale, cached file mapping. Add a test to
trigger this problem by racing background writeback with a
truncate/rewrite of the final page of the file.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/524 [new file with mode: 0755]
tests/generic/524.out [new file with mode: 0644]
tests/generic/group