Lines Matching refs:record
40 struct pstore_record *record; member
56 if (private->record) { in free_pstore_private()
57 kfree(private->record->buf); in free_pstore_private()
58 kfree(private->record); in free_pstore_private()
110 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show()
134 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_read()
137 ps->record->buf, ps->total_size); in pstore_file_read()
147 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_open()
183 struct pstore_record *record = p->record; in pstore_unlink() local
186 if (!record->psi->erase) in pstore_unlink()
200 mutex_lock(&record->psi->read_mutex); in pstore_unlink()
201 record->psi->erase(record); in pstore_unlink()
202 mutex_unlock(&record->psi->read_mutex); in pstore_unlink()
323 if (pos->record->psi == psi) { in pstore_put_backend_records()
345 int pstore_mkfile(struct dentry *root, struct pstore_record *record) in pstore_mkfile() argument
352 size_t size = record->size + record->ecc_notice_size; in pstore_mkfile()
361 if (pos->record->type == record->type && in pstore_mkfile()
362 pos->record->id == record->id && in pstore_mkfile()
363 pos->record->psi == record->psi) in pstore_mkfile()
374 pstore_type_to_name(record->type), in pstore_mkfile()
375 record->psi->name, record->id, in pstore_mkfile()
376 record->compressed ? ".enc.z" : ""); in pstore_mkfile()
387 private->record = record; in pstore_mkfile()
391 if (record->time.tv_sec) in pstore_mkfile()
392 inode->i_mtime = inode->i_ctime = record->time; in pstore_mkfile()