Lines Matching defs:test_file
144 struct file *test_file;
518 test_file = filp_open(test_file_path, O_RDONLY, 0);
519 if (IS_ERR(test_file)) {
520 pr_err("failed to open %s: %ld\n", test_file_path, PTR_ERR(test_file));
521 return PTR_ERR(test_file);
523 test_inode = file_inode(test_file);
534 if (test_lock_mapping && test_file && test_file->f_mapping)
535 lock_rwsem_ptr = (unsigned long)&test_file->f_mapping->i_mmap_rwsem;
592 if (test_file)
593 fput(test_file);