Lines Matching refs:data
25 * check data at a later time. So for example you would:
27 * write data
36 * close to the order in which the data hits the actual disk, not its cache. So
46 * on data being written before invoking a FLUSH. FUA bypasses cache so once it
51 * way we would process all the discards first and then write all the data, when
52 * in fact we want to do the data and the discard in the order that they
72 * [log_write_entry][ data written ]
92 * data_len - the size of the data in this log entry, this is for private log
93 * entry stuff, the MARK data provided by userspace for example.
127 char *data;
206 kfree(block->data);
212 size_t entrylen, void *data, size_t datalen,
243 memcpy(ptr + entrylen, data, datalen);
264 size_t entrylen, void *data, size_t datalen,
281 DMERR("Couldn't alloc inline data bio");
298 DMERR("Couldn't alloc inline data page");
303 memcpy(ptr, data, pg_datalen);
310 DMERR("Couldn't add page of inline data");
316 data += pg_datalen;
345 if (write_metadata(lc, &entry, sizeof(entry), block->data,
354 if (write_inline_data(lc, &entry, sizeof(entry), block->data,
359 /* we don't support both inline data & bio data */
413 kfree(block->data);
606 static int log_mark(struct log_writes_c *lc, char *data)
617 block->data = kstrndup(data, maxsize - 1, GFP_KERNEL);
618 if (!block->data) {
619 DMERR("Error copying mark data");
624 block->datalen = strlen(block->data);
696 * Discards will have bi_size set but there's no actual data, so just
728 /* We don't need the data, just submit */
747 * the actual contents into new pages so we know the data will always be
779 /* Had a flush with data in it, weird */
857 void *data)
861 return fn(ti, lc->dev, 0, ti->len, data);
866 * mark <mark data> - specify the marked data.
917 block->data = kzalloc(bytes, GFP_KERNEL);
918 if (!block->data) {
919 DMERR("Error allocating dax data space");
924 /* write data provided via the iterator */
925 if (!copy_from_iter(block->data, bytes, i)) {
926 DMERR("Error copying dax data");
927 kfree(block->data);