Lines Matching refs:psblk_file
72 static struct file *psblk_file; variable
190 return kernel_read(psblk_file, buf, bytes, &pos); in psblk_generic_blk_read()
199 return kernel_write(psblk_file, buf, bytes, &pos); in psblk_generic_blk_write()
212 psblk_file = filp_open(devpath, O_RDWR | O_DSYNC | O_NOATIME | O_EXCL, 0); in __register_pstore_blk()
213 if (IS_ERR(psblk_file)) { in __register_pstore_blk()
214 ret = PTR_ERR(psblk_file); in __register_pstore_blk()
219 if (!S_ISBLK(file_inode(psblk_file)->i_mode)) { in __register_pstore_blk()
225 bdev_nr_bytes(I_BDEV(psblk_file->f_mapping->host)); in __register_pstore_blk()
234 fput(psblk_file); in __register_pstore_blk()
236 psblk_file = NULL; in __register_pstore_blk()
326 if (psblk_file) { in __best_effort_exit()
331 fput(psblk_file); in __best_effort_exit()
332 psblk_file = NULL; in __best_effort_exit()