Lines Matching full:record
43 struct pstore_record *record; member
59 if (private->record) { in free_pstore_private()
60 kvfree(private->record->buf); in free_pstore_private()
61 kfree(private->record->priv); in free_pstore_private()
62 kfree(private->record); in free_pstore_private()
112 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show()
136 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_read()
139 ps->record->buf, ps->total_size); in pstore_file_read()
149 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_open()
180 * platform driver to erase the record from persistent store.
185 struct pstore_record *record = p->record; in pstore_unlink() local
187 if (!record->psi->erase) in pstore_unlink()
199 scoped_guard(mutex, &record->psi->read_mutex) in pstore_unlink()
200 record->psi->erase(record); in pstore_unlink()
317 if (pos->record->psi == psi) { in pstore_put_backend_records()
334 * Set the mtime & ctime to the date that this record was originally stored.
336 int pstore_mkfile(struct dentry *root, struct pstore_record *record) in pstore_mkfile() argument
342 size_t size = record->size + record->ecc_notice_size; in pstore_mkfile()
351 if (pos->record->type == record->type && in pstore_mkfile()
352 pos->record->id == record->id && in pstore_mkfile()
353 pos->record->psi == record->psi) in pstore_mkfile()
363 pstore_type_to_name(record->type), in pstore_mkfile()
364 record->psi->name, record->id, in pstore_mkfile()
365 record->compressed ? ".enc.z" : ""); in pstore_mkfile()
376 private->record = record; in pstore_mkfile()
380 if (record->time.tv_sec) in pstore_mkfile()
382 inode_set_ctime_to_ts(inode, record->time)); in pstore_mkfile()