search for: prev_entry

Displaying 4 results from an estimated 4 matches for "prev_entry".

2009 Dec 15
0
[PATCH 1/4] btrfs: fix the bug that __tree_search() returns the wrong result in extent_map.c
...c b/fs/btrfs/extent_map.c index 46bea0f..16744f4 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -136,20 +136,15 @@ static struct rb_node *__tree_search(struct rb_root *root, u64 offset, if (prev_ret) { orig_prev = prev; - while (prev && offset >= extent_map_end(prev_entry)) { - prev = rb_next(prev); - prev_entry = rb_entry(prev, struct extent_map, rb_node); - } + if (prev && offset < prev_entry->start) + prev = rb_prev(prev); *prev_ret = prev; prev = orig_prev; } if (next_ret) { - prev_entry = rb_entry(prev, struct extent_map, rb_n...
2009 Jun 13
1
menu system behaviour with empty config file
...existing config file is specified: the screen is cleared but not even the menu frame is displayed. It seems to be a problem with run_menu() from menumain.c: if (top != prev_top) { draw_menu(entry, top, 1); display_help(me->helptext); } else if (entry != prev_entry) { draw_row(prev_entry - top + 4 + VSHIFT, entry, top, 0, 0); draw_row(entry - top + 4 + VSHIFT, entry, top, 0, 0); display_help(me->helptext); } And we have entry = prev_entry = top = prev_top = -1. - Sebastian
2010 May 30
1
[RFC PATCH] menu: support single key booting
...it a/com32/menu/menumain.c b/com32/menu/menumain.c index 0c39264..3be1bd4 100644 --- a/com32/menu/menumain.c +++ b/com32/menu/menumain.c @@ -746,6 +746,7 @@ static const char *run_menu(void) { int key; int done = 0; + int hotkey = 0; volatile int entry = cm->curentry; int prev_entry = -1; volatile int top = cm->curtop; @@ -854,7 +855,12 @@ static const char *run_menu(void) } this_timeout = min(min(key_timeout, timeout_left), (clock_t) CLK_TCK); - key = mygetkey(this_timeout); + + if (hotkey && me->commit) + key = KEY_ENTER; + else + key = myget...
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and