btrfs: test to exercise shared extent reference accounting
authorFilipe Manana <fdmanana@suse.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
commit7f76160ed306bed69325ee19c4709ac8b77d8538
treea44a622de78572222f14d82e21fd6a8ed195d33f
parent8387546c9ba35eb3867a4a2de1bd6905b78fd614
btrfs: test to exercise shared extent reference accounting

Regression test for adding and dropping an equal number of references
for file extents. Verify that if we drop N references for a file extent
and we add too N new references for that same file extent in the same
transaction, running the delayed references (which always happens at
transaction commit time) does not fail.

The regression was introduced in the 4.2-rc1 Linux kernel and fixed by
the patch titled: "Btrfs: fix order by which delayed references are run".

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/095 [new file with mode: 0755]
tests/btrfs/095.out [new file with mode: 0644]
tests/btrfs/group