commit
96e6e8f4a68d ("vfs: add missing checks to copy_file_range")
adds checks for immutablefile and swapfile instead of commit
a31713517d
("vfs: introduce generic_file_rw_checks()").
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
# Check that we cannot copy_file_range() to an immutable file
#
# This is a regression test for kernel commit:
-# a31713517dac ("vfs: introduce generic_file_rw_checks()")
+# 96e6e8f4a68d ("vfs: add missing checks to copy_file_range")
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
# Check that we cannot copy_file_range() to a swapfile
#
# This is a regression test for kernel commit:
-# a31713517dac ("vfs: introduce generic_file_rw_checks()")
+# 96e6e8f4a68d ("vfs: add missing checks to copy_file_range")
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq