Lines Matching defs:psblk_file
72 static struct file *psblk_file;
190 return kernel_read(psblk_file, buf, bytes, &pos);
199 return kernel_write(psblk_file, buf, bytes, &pos);
212 psblk_file = filp_open(devpath, O_RDWR | O_DSYNC | O_NOATIME | O_EXCL, 0);
213 if (IS_ERR(psblk_file)) {
214 ret = PTR_ERR(psblk_file);
219 if (!S_ISBLK(file_inode(psblk_file)->i_mode)) {
225 bdev_nr_bytes(I_BDEV(psblk_file->f_mapping->host));
234 fput(psblk_file);
236 psblk_file = NULL;
321 * Currently, the only user of psblk_file is best_effort, so
326 if (psblk_file) {
331 fput(psblk_file);
332 psblk_file = NULL;