Lines Matching refs:rb
341 struct nilfs_recovery_block *rb; in nilfs_scan_dsync_log() local
349 rb = kmalloc(sizeof(*rb), GFP_NOFS); in nilfs_scan_dsync_log()
350 if (unlikely(!rb)) { in nilfs_scan_dsync_log()
354 rb->ino = ino; in nilfs_scan_dsync_log()
355 rb->blocknr = blocknr++; in nilfs_scan_dsync_log()
356 rb->vblocknr = le64_to_cpu(binfo->bi_vblocknr); in nilfs_scan_dsync_log()
357 rb->blkoff = le64_to_cpu(binfo->bi_blkoff); in nilfs_scan_dsync_log()
359 list_add_tail(&rb->list, head); in nilfs_scan_dsync_log()
378 struct nilfs_recovery_block *rb; in dispose_recovery_list() local
380 rb = list_first_entry(head, struct nilfs_recovery_block, list); in dispose_recovery_list()
381 list_del(&rb->list); in dispose_recovery_list()
382 kfree(rb); in dispose_recovery_list()
474 struct nilfs_recovery_block *rb, in nilfs_recovery_copy_block() argument
480 bh_org = __bread(nilfs->ns_bdev, rb->blocknr, nilfs->ns_blocksize); in nilfs_recovery_copy_block()
498 struct nilfs_recovery_block *rb, *n; in nilfs_recover_dsync_blocks() local
504 list_for_each_entry_safe(rb, n, head, list) { in nilfs_recover_dsync_blocks()
505 inode = nilfs_iget(sb, root, rb->ino); in nilfs_recover_dsync_blocks()
512 pos = rb->blkoff << inode->i_blkbits; in nilfs_recover_dsync_blocks()
524 err = nilfs_recovery_copy_block(nilfs, rb, page); in nilfs_recover_dsync_blocks()
548 err, (unsigned long)rb->ino, in nilfs_recover_dsync_blocks()
549 (unsigned long long)rb->blkoff); in nilfs_recover_dsync_blocks()
554 list_del_init(&rb->list); in nilfs_recover_dsync_blocks()
555 kfree(rb); in nilfs_recover_dsync_blocks()