Lines Matching refs:sector
16 #define NODE_END(node) ((node)->sector + ((node)->size >> 9))
28 sector_t this_end = this->sector + (this->size >> 9);
39 if (this->sector < here->sector)
41 else if (this->sector > here->sector)
59 * @sector: start sector of @interval
62 * Returns if the tree contains the node @interval with start sector @start.
65 * sector number.
68 drbd_contains_interval(struct rb_root *root, sector_t sector,
77 if (sector < here->sector)
79 else if (sector > here->sector)
101 * drbd_find_overlap - search for an interval overlapping with [sector, sector + size)
102 * @sector: start sector
105 * Returns an interval overlapping with [sector, sector + size), or NULL if
107 * tree, the interval with the lowest start sector is returned, and all other
112 drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size)
116 sector_t end = sector + (size >> 9);
125 sector < interval_end(node->rb_left)) {
128 } else if (here->sector < end &&
129 sector < here->sector + (here->size >> 9)) {
132 } else if (sector >= here->sector) {
142 drbd_next_overlap(struct drbd_interval *i, sector_t sector, unsigned int size)
144 sector_t end = sector + (size >> 9);
152 if (i->sector >= end)
154 if (sector < i->sector + (i->size >> 9))