Lines Matching refs:dn
46 struct ubifs_data_node *dn) in read_block() argument
54 err = ubifs_tnc_lookup(c, &key, dn); in read_block()
62 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > in read_block()
64 len = le32_to_cpu(dn->size); in read_block()
68 dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; in read_block()
71 err = ubifs_decrypt(inode, dn, &dlen, block); in read_block()
77 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block()
78 le16_to_cpu(dn->compr_type)); in read_block()
95 ubifs_dump_node(c, dn, UBIFS_MAX_DATA_NODE_SZ); in read_block()
104 struct ubifs_data_node *dn; in do_readpage() local
125 dn = kmalloc(UBIFS_MAX_DATA_NODE_SZ, GFP_NOFS); in do_readpage()
126 if (!dn) { in do_readpage()
140 ret = read_block(inode, addr, block, dn); in do_readpage()
146 int dlen = le32_to_cpu(dn->size); in do_readpage()
172 kfree(dn); in do_readpage()
181 kfree(dn); in do_readpage()
630 struct ubifs_data_node *dn; in populate_page() local
632 dn = bu->buf + (bu->zbranch[nn].offs - offs); in populate_page()
634 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > in populate_page()
637 len = le32_to_cpu(dn->size); in populate_page()
641 dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; in populate_page()
645 err = ubifs_decrypt(inode, dn, &dlen, page_block); in populate_page()
650 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in populate_page()
651 le16_to_cpu(dn->compr_type)); in populate_page()