On Tue, Jun 11, 2019 at 06:39:16PM +0300, Amir Goldstein wrote: > Depending on filesystem, copying from active swapfile may be allowed, > just as read from swapfile may be allowed. ...snip.. > +# This is a regression test for kernel commit: > +# a31713517dac ("vfs: introduce generic_file_rw_checks()") Would you mind updating sha1 after it get merged to Linus tree? That would be helpful for people tracking this issue. Thanks, Murphy > # > seq=`basename $0` > seqres=$RESULT_DIR/$seq > @@ -46,7 +49,6 @@ echo swap files return ETXTBUSY > _format_swapfile $SCRATCH_MNT/swapfile 16m > swapon $SCRATCH_MNT/swapfile > $XFS_IO_PROG -f -c "copy_range -l 32k $SCRATCH_MNT/file" $SCRATCH_MNT/swapfile > -$XFS_IO_PROG -f -c "copy_range -l 32k $SCRATCH_MNT/swapfile" $SCRATCH_MNT/copy > swapoff $SCRATCH_MNT/swapfile > > # success, all done > diff --git a/tests/generic/554.out b/tests/generic/554.out > index ffaa7b0a..19385a05 100644 > --- a/tests/generic/554.out > +++ b/tests/generic/554.out > @@ -1,4 +1,3 @@ > QA output created by 554 > swap files return ETXTBUSY > copy_range: Text file busy > -copy_range: Text file busy > -- > 2.17.1 >