Searched refs:bu (Results 1 – 4 of 4) sorted by relevance
/fs/ubifs/ |
D | file.c | 606 struct bu_info *bu, int *n) in populate_page() argument 608 int i = 0, nn = *n, offs = bu->zbranch[0].offs, hole = 0, read = 0; in populate_page() 631 if (nn >= bu->cnt) { in populate_page() 634 } else if (key_block(c, &bu->zbranch[nn].key) == page_block) { in populate_page() 637 dn = bu->buf + (bu->zbranch[nn].offs - offs); in populate_page() 665 } else if (key_block(c, &bu->zbranch[nn].key) < page_block) { in populate_page() 716 static int ubifs_do_bulk_read(struct ubifs_info *c, struct bu_info *bu, in ubifs_do_bulk_read() argument 724 int allocate = bu->buf ? 0 : 1; in ubifs_do_bulk_read() 728 err = ubifs_tnc_get_bu_keys(c, bu); in ubifs_do_bulk_read() 732 if (bu->eof) { in ubifs_do_bulk_read() [all …]
|
D | tnc.c | 1552 int ubifs_tnc_get_bu_keys(struct ubifs_info *c, struct bu_info *bu) in ubifs_tnc_get_bu_keys() argument 1556 unsigned int block = key_block(c, &bu->key); in ubifs_tnc_get_bu_keys() 1559 bu->cnt = 0; in ubifs_tnc_get_bu_keys() 1560 bu->blk_cnt = 0; in ubifs_tnc_get_bu_keys() 1561 bu->eof = 0; in ubifs_tnc_get_bu_keys() 1565 err = ubifs_lookup_level0(c, &bu->key, &znode, &n); in ubifs_tnc_get_bu_keys() 1572 if (len > bu->buf_len) { in ubifs_tnc_get_bu_keys() 1577 bu->zbranch[bu->cnt++] = znode->zbranch[n]; in ubifs_tnc_get_bu_keys() 1578 bu->blk_cnt += 1; in ubifs_tnc_get_bu_keys() 1594 if (key_inum(c, key) != key_inum(c, &bu->key) || in ubifs_tnc_get_bu_keys() [all …]
|
D | super.c | 1212 if (c->bu.buf) in bu_init() 1216 c->bu.buf = kmalloc(c->max_bu_buf_len, GFP_KERNEL | __GFP_NOWARN); in bu_init() 1217 if (!c->bu.buf) { in bu_init() 1651 kfree(c->bu.buf); in mount_ubifs() 1695 kfree(c->bu.buf); in ubifs_umount() 2046 kfree(c->bu.buf); in ubifs_remount_fs() 2047 c->bu.buf = NULL; in ubifs_remount_fs()
|
D | ubifs.h | 1350 struct bu_info bu; member 1891 int ubifs_tnc_get_bu_keys(struct ubifs_info *c, struct bu_info *bu); 1892 int ubifs_tnc_bulk_read(struct ubifs_info *c, struct bu_info *bu);
|