Lines Matching refs:data

137         panic("clobbered data");
445 char *data = NULL;
452 /* this file's xattr didn't have any extra data when we fetched it, so we can synthesize a header from the data in the cnode */
454 MALLOC(data, char *, sizeof(decmpfs_header), M_TEMP, M_WAITOK);
455 if (!data) {
459 hdr = (decmpfs_header*)data;
476 MALLOC(data, char *, attr_size + sizeof(hdr->attr_size), M_TEMP, M_WAITOK);
477 if (!data) {
484 uio_addiov(attr_uio, CAST_USER_ADDR_T(data + sizeof(hdr->attr_size)), attr_size);
493 hdr = (decmpfs_header*)data;
521 if (data) FREE(data, M_TEMP);
602 /* is the data okay? */
640 int saveInvalid = 0; // save the header data even though the type was out of range
693 /* lock our cnode data so that another caller doesn't change the state under us */
820 in that case, we also want to truncate the data fork of the file
825 /* the file had a decmpfs attribute but the type was out of range, so don't muck with the file's data size */
1073 void *data = NULL;
1103 kern_return_t kr = ubc_upl_map(pl, (vm_offset_t*)&data);
1104 if ((kr != KERN_SUCCESS) || (data == NULL)) {
1121 /* the mapped data pointer points to the first page of the page list, so we want to start filling in at an offset of pl_offset */
1122 vec.buf = (char*)data + pl_offset;
1152 abort_pagein = 1; /* we're not going to commit our data */
1163 kr = ubc_upl_unmap(pl); data = NULL; /* make sure to set data to NULL so we don't try to unmap again below */
1174 if (data) ubc_upl_unmap(pl);
1199 void *data = NULL;
1316 kr = ubc_upl_map(upl, (vm_offset_t*)&data);
1324 if (!data) {
1330 /* fetch uncompressed data into the mapped upl */
1333 vec = (decmpfs_vector){ .buf = data, .size = curUplSize };
1352 abort_read = 1; /* we're not going to commit our data */
1359 memset((char*)data + did_read, 0, curUplSize - did_read);
1422 call out to the decompressor to free remove any data associated with this compressed file
1491 char *data = NULL;
1558 /* the caller is trying to grow the file, so we should decompress all the data */
1563 MALLOC(data, char *, allocSize, M_TEMP, M_WAITOK);
1564 if (!data) {
1585 /* loop decompressing data from the file and writing it into the data fork */
1588 decmpfs_vector vec = { .buf = data, .size = MIN(allocSize, remaining) };
1596 /* we're done reading data */
1601 err = uio_addiov(uio_w, CAST_USER_ADDR_T(data), bytes_read);
1627 /* sync the data and metadata */
1652 /* free the compressed data associated with this file */
1660 since we succeeded in writing all of the file data to the data fork
1678 if (data) FREE(data, M_TEMP);
1682 /* if there was a failure, reset compression flags to unknown and clear the buffer cache data */
1706 The "Type1" compressor stores the data fork directly in the compression xattr