Lines Matching refs:group

85 	__u64 group = nr;  in nilfs_palloc_group()  local
87 *offset = do_div(group, nilfs_palloc_entries_per_group(inode)); in nilfs_palloc_group()
88 return group; in nilfs_palloc_group()
100 nilfs_palloc_desc_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_desc_blkoff() argument
103 group / nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_desc_blkoff()
116 nilfs_palloc_bitmap_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_bitmap_blkoff() argument
119 group % nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_bitmap_blkoff()
120 return nilfs_palloc_desc_blkoff(inode, group) + 1 + in nilfs_palloc_bitmap_blkoff()
168 unsigned long group, group_offset; in nilfs_palloc_entry_blkoff() local
170 group = nilfs_palloc_group(inode, nr, &group_offset); in nilfs_palloc_entry_blkoff()
172 return nilfs_palloc_bitmap_blkoff(inode, group) + 1 + in nilfs_palloc_entry_blkoff()
261 unsigned long group, in nilfs_palloc_get_desc_block() argument
267 nilfs_palloc_desc_blkoff(inode, group), in nilfs_palloc_get_desc_block()
280 unsigned long group, in nilfs_palloc_get_bitmap_block() argument
286 nilfs_palloc_bitmap_blkoff(inode, group), in nilfs_palloc_get_bitmap_block()
297 unsigned long group) in nilfs_palloc_delete_bitmap_block() argument
303 group), in nilfs_palloc_delete_bitmap_block()
348 unsigned long group, in nilfs_palloc_block_get_group_desc() argument
352 group % nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_block_get_group_desc()
510 unsigned long group, maxgroup, ngroups; in nilfs_palloc_prepare_alloc_entry() local
519 group = nilfs_palloc_group(inode, req->pr_entry_nr, &group_offset); in nilfs_palloc_prepare_alloc_entry()
523 if (group >= ngroups && wrap) { in nilfs_palloc_prepare_alloc_entry()
525 group = 0; in nilfs_palloc_prepare_alloc_entry()
529 ret = nilfs_palloc_get_desc_block(inode, group, 1, &desc_bh); in nilfs_palloc_prepare_alloc_entry()
534 inode, group, desc_bh, desc_kaddr); in nilfs_palloc_prepare_alloc_entry()
535 n = nilfs_palloc_rest_groups_in_desc_block(inode, group, in nilfs_palloc_prepare_alloc_entry()
537 for (j = 0; j < n; j++, desc++, group++) { in nilfs_palloc_prepare_alloc_entry()
538 lock = nilfs_mdt_bgl_lock(inode, group); in nilfs_palloc_prepare_alloc_entry()
541 inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
560 entries_per_group * group + pos; in nilfs_palloc_prepare_alloc_entry()
613 unsigned long group, group_offset; in nilfs_palloc_commit_free_entry() local
618 group = nilfs_palloc_group(inode, req->pr_entry_nr, &group_offset); in nilfs_palloc_commit_free_entry()
620 desc = nilfs_palloc_block_get_group_desc(inode, group, in nilfs_palloc_commit_free_entry()
624 lock = nilfs_mdt_bgl_lock(inode, group); in nilfs_palloc_commit_free_entry()
656 unsigned long group, group_offset; in nilfs_palloc_abort_alloc_entry() local
659 group = nilfs_palloc_group(inode, req->pr_entry_nr, &group_offset); in nilfs_palloc_abort_alloc_entry()
661 desc = nilfs_palloc_block_get_group_desc(inode, group, in nilfs_palloc_abort_alloc_entry()
665 lock = nilfs_mdt_bgl_lock(inode, group); in nilfs_palloc_abort_alloc_entry()
695 unsigned long group, group_offset; in nilfs_palloc_prepare_free_entry() local
698 group = nilfs_palloc_group(inode, req->pr_entry_nr, &group_offset); in nilfs_palloc_prepare_free_entry()
699 ret = nilfs_palloc_get_desc_block(inode, group, 1, &desc_bh); in nilfs_palloc_prepare_free_entry()
702 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry()
741 unsigned long group, group_offset; in nilfs_palloc_freev() local
754 group = nilfs_palloc_group(inode, entry_nrs[i], &group_offset); in nilfs_palloc_freev()
755 ret = nilfs_palloc_get_desc_block(inode, group, 0, &desc_bh); in nilfs_palloc_freev()
758 ret = nilfs_palloc_get_bitmap_block(inode, group, 0, in nilfs_palloc_freev()
766 group_min_nr = (__u64)group * epg; in nilfs_palloc_freev()
770 lock = nilfs_mdt_bgl_lock(inode, group); in nilfs_palloc_freev()
830 inode, group, desc_bh, desc_kaddr); in nilfs_palloc_freev()
838 ret = nilfs_palloc_delete_bitmap_block(inode, group); in nilfs_palloc_freev()
842 ret, group, inode->i_ino); in nilfs_palloc_freev()