X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=grab_client.c;fp=grab_client.c;h=393e2ce331117a6d29231f551b78103b6bfe9f83;hp=04d90169864e50dd9b018159ac079551f39fd4ef;hb=e3a7e12639c34fd86d48a072beb48add8c498d09;hpb=742c8b3f79a59278ced71e1855da1846b157b494 diff --git a/grab_client.c b/grab_client.c index 04d90169..393e2ce3 100644 --- a/grab_client.c +++ b/grab_client.c @@ -89,7 +89,7 @@ err: return -E_GC_WRITE; } -static void gc_pre_select(struct sched *s, void *context) +static void gc_pre_monitor(struct sched *s, void *context) { struct grab_client *gc = context; int ret = btr_node_status(gc->btrn, 0, BTR_NT_LEAF); @@ -102,10 +102,10 @@ static void gc_pre_select(struct sched *s, void *context) } /* - * We need this forward declaration as post_select() needs + * We need this forward declaration as gc_post_monitor() needs * activate_grab_client and vice versa. */ -static int gc_post_select(struct sched *s, void *context); +static int gc_post_monitor(struct sched *s, void *context); /** * Move a grab client to the active list and start it. @@ -129,8 +129,8 @@ static void gc_activate(struct grab_client *gc, struct sched *s) gc->task = task_register(&(struct task_info) { .name = name, - .pre_select = gc_pre_select, - .post_select = gc_post_select, + .pre_monitor = gc_pre_monitor, + .post_monitor = gc_post_monitor, .context = gc, }, s); } @@ -171,7 +171,7 @@ static int gc_close(struct grab_client *gc, int err) /* * We must not free the gc structure here as it contains ->task * which is still used because this function is called from - * post_select(). + * post_monitor(). */ close(gc->fd); gc->fd = -1; @@ -182,7 +182,7 @@ static int gc_close(struct grab_client *gc, int err) return 0; } -static int gc_post_select(__a_unused struct sched *s, void *context) +static int gc_post_monitor(__a_unused struct sched *s, void *context) { struct grab_client *gc = context; struct btr_node *btrn = gc->btrn;