Displaying 3 results from an estimated 3 matches for "r_start".
Did you mean:
_start
2023 Apr 06
3
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
...static void __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap,
while (1) {
next = rb_next(prev);
if (next) {
- next_resv = rb_entry(next,
- struct ocfs2_alloc_reservation,
- r_node);
-
- gap_start = ocfs2_resv_end(prev_resv) + 1;
- gap_end = next_resv->r_start - 1;
- gap_len = gap_end - gap_start + 1;
+ gap_start = prev_resv->r_start;
+ gap_end = prev_resv->r_start + prev_resv->r_len - 1;
+ gap_len = prev_resv->r_len;
} else {
/*
* We're at the rightmost edge of the
@@ -575,8 +573,8 @@ static void __ocfs2_resv_find_win...
2023 Apr 29
1
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
...while (1) {
>> next = rb_next(prev);
>> if (next) {
>> - next_resv = rb_entry(next,
>> - struct ocfs2_alloc_reservation,
>> - r_node);
>> -
>> - gap_start = ocfs2_resv_end(prev_resv) + 1;
>> - gap_end = next_resv->r_start - 1;
>> - gap_len = gap_end - gap_start + 1;
>> + gap_start = prev_resv->r_start;
>> + gap_end = prev_resv->r_start + prev_resv->r_len - 1;
>> + gap_len = prev_resv->r_len;
>> } else {
>> /*
>> * We're at the rightmost...
2023 Apr 21
2
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
...cfs2_reservation_map *resmap,
> while (1) {
> next = rb_next(prev);
> if (next) {
> - next_resv = rb_entry(next,
> - struct ocfs2_alloc_reservation,
> - r_node);
> -
> - gap_start = ocfs2_resv_end(prev_resv) + 1;
> - gap_end = next_resv->r_start - 1;
> - gap_len = gap_end - gap_start + 1;
> + gap_start = prev_resv->r_start;
> + gap_end = prev_resv->r_start + prev_resv->r_len - 1;
> + gap_len = prev_resv->r_len;
> } else {
> /*
> * We're at the rightmost edge of the
> @@ -575,8 +57...