Commit 79436259 79436259b62fae7b2ae3b247d2e50832795a8cf9 by Sergey Poznyakoff

(page_move): Fix start msg calculation

1 parent e1384d33
......@@ -183,12 +183,10 @@ page_move (off_t offset)
check_page_map ();
if (offset > 0)
start = page_map[cursor] + offset;
else if (-offset > page_map[cursor])
if (offset < 0 && -offset > page_map[0])
start = 1;
else
start = page_map[cursor] + offset;
start = page_map[0] + offset;
util_range_msg (start, page_size,
MSG_COUNT|MSG_NODELETED|MSG_SILENT, _fill_map, &count);
......