Lines Matching defs:test_file
144 struct file *test_file;
534 test_file = filp_open(test_file_path, O_RDONLY, 0);
535 if (IS_ERR(test_file)) {
536 pr_err("failed to open %s: %ld\n", test_file_path, PTR_ERR(test_file));
537 return PTR_ERR(test_file);
539 test_inode = file_inode(test_file);
550 if (test_lock_mapping && test_file && test_file->f_mapping)
551 lock_rwsem_ptr = (unsigned long)&test_file->f_mapping->i_mmap_rwsem;
608 if (test_file)
609 fput(test_file);