Lines Matching refs:cs_node
802 struct ubifs_cs_node *cs_node = NULL; in get_cs_sqnum() local
806 cs_node = kmalloc(UBIFS_CS_NODE_SZ, GFP_KERNEL); in get_cs_sqnum()
807 if (!cs_node) in get_cs_sqnum()
811 err = ubifs_leb_read(c, lnum, (void *)cs_node, offs, in get_cs_sqnum()
815 ret = ubifs_scan_a_node(c, cs_node, UBIFS_CS_NODE_SZ, lnum, offs, 0); in get_cs_sqnum()
820 if (cs_node->ch.node_type != UBIFS_CS_NODE) { in get_cs_sqnum()
821 ubifs_err(c, "Not a CS node, type is %d", cs_node->ch.node_type); in get_cs_sqnum()
824 if (le64_to_cpu(cs_node->cmt_no) != c->cmt_no) { in get_cs_sqnum()
826 (unsigned long long)le64_to_cpu(cs_node->cmt_no), in get_cs_sqnum()
830 *cs_sqnum = le64_to_cpu(cs_node->ch.sqnum); in get_cs_sqnum()
832 kfree(cs_node); in get_cs_sqnum()
839 kfree(cs_node); in get_cs_sqnum()