Lines Matching refs:record
40 struct pstore_record *record;
56 if (private->record) {
57 kvfree(private->record->buf);
58 kfree(private->record->priv);
59 kfree(private->record);
111 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off);
135 if (ps->record->type == PSTORE_TYPE_FTRACE)
138 ps->record->buf, ps->total_size);
148 if (ps->record->type == PSTORE_TYPE_FTRACE)
179 * platform driver to erase the record from persistent store.
184 struct pstore_record *record = p->record;
186 if (!record->psi->erase)
198 scoped_guard(mutex, &record->psi->read_mutex)
199 record->psi->erase(record);
316 if (pos->record->psi == psi) {
333 * Set the mtime & ctime to the date that this record was originally stored.
335 int pstore_mkfile(struct dentry *root, struct pstore_record *record)
342 size_t size = record->size + record->ecc_notice_size;
351 if (pos->record->type == record->type &&
352 pos->record->id == record->id &&
353 pos->record->psi == record->psi)
364 pstore_type_to_name(record->type),
365 record->psi->name, record->id,
366 record->compressed ? ".enc.z" : "");
377 private->record = record;
381 if (record->time.tv_sec)
382 inode->i_mtime = inode_set_ctime_to_ts(inode, record->time);