selftests/bpf: test_xfs_file support to clear FMODE_RANDOM
hulk inclusion category: feature bugzilla: 173267 CVE: NA --------------------------- If ra->prev_pos page index is equal to current pos, that means it is sequential read, then clear FMODE_RANDOM flag to enable async readahead. Usage: make -C bpf ./test_xfs_file clear Signed-off-by:Yufen Yu <yuyufen@huawei.com> Signed-off-by:
Zhihao Cheng <chengzhihao1@huawei.com> Reviewed-by:
Hou Tao <houtao1@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- tools/include/uapi/linux/xfs.h 3 additions, 1 deletiontools/include/uapi/linux/xfs.h
- tools/testing/selftests/bpf/Makefile 1 addition, 1 deletiontools/testing/selftests/bpf/Makefile
- tools/testing/selftests/bpf/test_clear_xfs_file.c 43 additions, 0 deletionstools/testing/selftests/bpf/test_clear_xfs_file.c
- tools/testing/selftests/bpf/test_xfs_file.c 8 additions, 3 deletionstools/testing/selftests/bpf/test_xfs_file.c
Please register or sign in to comment