Lines Matching refs:record
40 struct pstore_record *record;
56 if (private->record) {
57 kfree(private->record->buf);
58 kfree(private->record);
110 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off);
134 if (ps->record->type == PSTORE_TYPE_FTRACE)
137 ps->record->buf, ps->total_size);
147 if (ps->record->type == PSTORE_TYPE_FTRACE)
178 * platform driver to erase the record from persistent store.
183 struct pstore_record *record = p->record;
186 if (!record->psi->erase)
200 mutex_lock(&record->psi->read_mutex);
201 record->psi->erase(record);
202 mutex_unlock(&record->psi->read_mutex);
322 if (pos->record->psi == psi) {
339 * Set the mtime & ctime to the date that this record was originally stored.
341 int pstore_mkfile(struct dentry *root, struct pstore_record *record)
348 size_t size = record->size + record->ecc_notice_size;
357 if (pos->record->type == record->type &&
358 pos->record->id == record->id &&
359 pos->record->psi == record->psi)
370 pstore_type_to_name(record->type),
371 record->psi->name, record->id,
372 record->compressed ? ".enc.z" : "");
383 private->record = record;
387 if (record->time.tv_sec)
388 inode->i_mtime = inode->i_ctime = record->time;