Lines Matching defs:data

16  * area. Buds contain file system data - data nodes, inode nodes, etc. The log
19 * not copy the data, the buds just become indexed. Since after the commit the
24 * The journal is multi-headed because we want to write data to the journal as
26 * in one LEB, so we may write data owned by different inodes to different
27 * journal heads, although at present only one data head is used.
31 * only data nodes.
190 * write-buffer data are written to the next-to-last bud
255 * write_head - write data to a journal head.
264 * This function writes data to the reserved space of journal head @jhead.
307 * Note, the journal head may be unlocked as soon as the data is written, while
308 * the commit lock has to be released after the data has been added to the
475 * Drop the attached data if this is a deletion inode, the data is not
479 memcpy(ino->data, ui->data, ui->data_len);
561 * no need to attach and write inode data, it is being deleted anyway.
713 * ubifs_jnl_write_data - write a data node to the journal.
715 * @inode: inode the data node belongs to
718 * @len: data length (must not exceed %UBIFS_BLOCK_SIZE)
720 * This function writes a data node to the journal. Returns %0 if the data node
726 struct ubifs_data_node *data;
743 data = kmalloc(dlen + auth_len, GFP_NOFS | __GFP_NOWARN);
744 if (!data) {
750 * always able to write the data.
754 data = c->write_reserve_buf;
757 data->ch.node_type = UBIFS_DATA_NODE;
758 key_write(c, key, &data->key);
759 data->size = cpu_to_le32(len);
768 ubifs_compress(c, buf, len, &data->data, &compr_len, &compr_type);
772 err = ubifs_encrypt(inode, data, compr_len, &out_len, key_block(c, key));
777 data->compr_size = 0;
787 data->compr_type = cpu_to_le16(compr_type);
794 ubifs_prepare_node(c, data, dlen, 0);
795 err = write_head(c, DATAHD, data, write_len, &lnum, &offs, 0);
799 err = ubifs_node_calc_hash(c, data, hash);
816 kfree(data);
828 kfree(data);
854 * If the inode is being deleted, do not write the attached data. No
1473 * truncate_data_node - re-compress/encrypt a truncated data node.
1475 * @inode: inode which refers to the data node
1476 * @block: data block number
1477 * @dn: data node to re-compress
1479 * @dn_size: size of the data node @dn in memory
1481 * This function is used when an inode is truncated and the last data node of
1509 err = ubifs_decompress(c, &dn->data, dlen, buf, &out_len, compr_type);
1513 ubifs_compress(c, buf, *new_len, &dn->data, &out_len, &compr_type);
1544 * written, the journal tree is updated, and the last data block is re-written
1593 /* Get last data block so it can be truncated */
1607 ubifs_err(c, "bad data node (block %u, inode %lu)",
1733 * Since we are deleting the inode, we do not bother to attach any data