Lines Matching refs:br
104 struct xfs_bitmap_range *br; in xfs_bitmap_disunion() local
131 br = list_entry(lp, struct xfs_bitmap_range, list); in xfs_bitmap_disunion()
137 while (sub_br->start + sub_br->len <= br->start) { in xfs_bitmap_disunion()
142 if (sub_br->start >= br->start + br->len) { in xfs_bitmap_disunion()
150 if (sub_br->start < br->start) { in xfs_bitmap_disunion()
151 sub_len -= br->start - sub_br->start; in xfs_bitmap_disunion()
152 sub_start = br->start; in xfs_bitmap_disunion()
154 if (sub_len > br->len) in xfs_bitmap_disunion()
155 sub_len = br->len; in xfs_bitmap_disunion()
158 if (sub_start == br->start) in xfs_bitmap_disunion()
160 if (sub_start + sub_len == br->start + br->len) in xfs_bitmap_disunion()
165 br->start += sub_len; in xfs_bitmap_disunion()
166 br->len -= sub_len; in xfs_bitmap_disunion()
170 br->len -= sub_len; in xfs_bitmap_disunion()
176 list_del(&br->list); in xfs_bitmap_disunion()
177 kmem_free(br); in xfs_bitmap_disunion()
192 new_br->len = br->start + br->len - new_br->start; in xfs_bitmap_disunion()
193 list_add(&new_br->list, &br->list); in xfs_bitmap_disunion()
194 br->len = sub_start - br->start; in xfs_bitmap_disunion()